/* 
 * SureEntry Tour Page Styles
 * Custom CSS for the animated tour experience
 */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0a58ca;
  text-decoration: none;
}

.btn {
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 15px 30px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern.svg');
  opacity: 0.1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.scroll-indicator {
  margin-top: 40px;
  text-align: center;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.scroll-arrow {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  margin: 10px auto;
  animation: arrow 1.5s infinite;
}

@keyframes arrow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Tour Sections */
.tour-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.tour-section.bg-light {
  background-color: #f8f9fa;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-content h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.step-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #495057;
}

.step-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style-type: none; /* Remove default bullets */
}

.step-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
}

.step-content ul li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Animation Containers */
.animation-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 480px; /* Increased from 400px to accommodate tablet content */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* CSV Upload Animation */
.csv-upload-animation {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.csv-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.file-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 10px;
}

.file-name {
  font-size: 1rem;
  color: #495057;
}

.upload-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 20px 0;
}

.database-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.progress-container {
  width: 80%;
  margin-top: 20px;
}

.progress {
  height: 10px;
  border-radius: 5px;
}

/* Tablet Device Animation - FIXED VISIBILITY ISSUES */
.tablet-device {
  width: 320px;
  height: 460px; /* Increased from 420px to ensure all content is visible */
  background-color: #333;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: visible; /* Changed from hidden to ensure content is visible */
  margin: 0 auto;
  transform: scale(0.95); /* Slightly scaled down to fit better */
}

.tablet-screen {
  width: 100%;
  height: 420px; /* Increased from 380px */
  background-color: white;
  border-radius: 10px;
  overflow: hidden; /* Changed from auto to hidden to remove scrollbar */
}

.tablet-content {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tablet-header {
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 15px;
  width: 100%;
}

.tablet-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.tablet-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center to flex-start */
  align-items: center;
  width: 100%;
  padding-bottom: 20px; /* Added padding to ensure bottom content is visible */
}

.input-field {
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.input-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #6c757d;
}

.input-field input {
  width: 90%;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  text-align: center;
}

/* PIN Pad - FIXED VISIBILITY ISSUES */
.pin-pad {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px; /* Added margin to ensure space for buttons below */
}

.pin-display {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 15px;
  letter-spacing: 5px;
  width: 80%;
}

.pin-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced from 12px for better fit */
  align-items: center;
  width: 100%;
}

.pin-row {
  display: flex;
  justify-content: center;
  gap: 10px; /* Reduced from 12px for better fit */
  width: 100%;
}

.pin-button {
  width: 55px; /* Reduced from 60px for better fit */
  height: 55px; /* Reduced from 60px for better fit */
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pin-button:hover {
  background-color: #e9ecef;
}

.pin-button.clear {
  background-color: #ffc107;
  color: white;
}

.pin-button.enter {
  background-color: #198754;
  color: white;
}

/* Cancel Button - FIXED VISIBILITY */
.cancel-button {
  margin-top: 15px;
  padding: 8px 20px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-button:hover {
  background-color: #c82333;
}

/* Post PIN Entry Screen - IMPROVED */
.post-pin-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
}

.post-pin-screen .welcome-message {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

.post-pin-screen .user-avatar {
  width: 50px;
  height: 50px;
  background-color: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 10px;
}

.user-info .user-avatar {
  width: 80px;
  height: 80px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 10px;
}

.post-pin-screen .user-avatar i {
  font-size: 25px;
  color: #6c757d;
}

.post-pin-screen .user-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.post-pin-screen .action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  width: 90%;
  max-width: 220px;
}

.post-pin-screen .action-button {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}

.post-pin-screen .check-in {
  background-color: #198754;
  color: white;
}

.post-pin-screen .check-out {
  background-color: #dc3545;
  color: white;
}

.tablet-home-button {
  width: 40px;
  height: 5px;
  background-color: #e9ecef;
  border-radius: 3px;
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
}

/* User Flow Animation */
.user-flow-animation {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.user-icon, .check-in-icon, .database-update {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.user-icon i, .check-in-icon i, .database-update i {
  font-size: 3rem;
  margin-bottom: 10px;
}

.user-icon i {
  color: #6c757d;
}

.check-in-icon i {
  color: #198754;
}

.database-update i {
  color: var(--primary-color);
}

.user-name, .check-status, .update-text {
  font-weight: 600;
  margin-bottom: 5px;
}

.check-time {
  font-size: 0.8rem;
  color: #6c757d;
}

.flow-arrow {
  font-size: 1.5rem;
  color: #6c757d;
}

/* Dashboard Animation - ADDED VISUAL ELEMENTS */
.dashboard-animation {
  width: 100%;
  height: 100%;
}

.dashboard-screen {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.dashboard-controls {
  display: flex;
  gap: 15px;
}

.control-icon {
  cursor: pointer;
}

.dashboard-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.dashboard-sidebar {
  width: 180px;
  background-color: #f8f9fa;
  padding: 15px 0;
}

.sidebar-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.sidebar-item.active {
  background-color: rgba(13, 110, 253, 0.1);
  border-left: 3px solid var(--primary-color);
}

.dashboard-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.stat-cards {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Attendance Stats Chart - ADDED */
.chart-container {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.chart-header {
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.chart-placeholder {
  height: 200px;
  background-color: #ffffff;
  border-radius: 5px;
  position: relative;
}

/* Added visual bar chart elements */
.attendance-bars {
  display: flex;
  height: 150px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 20px;
}

.attendance-bar {
    width: 12%;
    background-color: #0d6efd;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
    animation: barGrow 1.5s ease-out forwards;
}

/* Add animation keyframes if not already present */
@keyframes barGrow {
    from { 
        height: 0; 
        opacity: 0;
    }
    to { 
        height: var(--bar-height, 60%);
        opacity: 0.9;
    }
}

.attendance-bar:hover {
  opacity: 1;
  transform: scaleY(1.05);
}


.bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #6c757d;
  white-space: nowrap;
}

.attendance-legend {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 5px;
}

.legend-text {
  font-size: 12px;
  color: #6c757d;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #6c757d;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.check-in {
  background-color: #0d6efd;
}

.legend-color.check-out {
  background-color: #6610f2;
}

/* CTA Section */
.cta-section {
  padding: 80px 0; /* Removed bottom padding */
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: white;
  position: relative;
  margin-bottom: 0; /* Ensure no margin at bottom */
  border-bottom: none; /* Ensure no border at bottom */
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p:not(.guarantee-text) {
  font-size: 1.2rem;
  opacity: 0.9;
  color: white;
  margin-bottom: 0; /* Remove default margin */
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px; /* Changed from padding-bottom to margin-bottom */
}

.guarantee-badge-wrapper {
  margin: 40px 0; /* Equal spacing above and below for vertical centering */
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 20px;
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 20px;
  margin: 0; /* Remove individual margins since wrapper handles spacing */
}

.guarantee-badge i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: var(--warning-color);
}

.guarantee-badge span {
  font-weight: 700;
  font-size: 1.1rem;
}

.cta-section p.guarantee-text {
  font-size: 1rem;
  opacity: 0.8;
  color: white;
  margin-top: 0; /* Remove top margin since wrapper handles spacing */
  margin-bottom: 40px; /* Space before buttons */
}

/* Footer Styles */
.footer {
  background-color: #212529;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  margin-top: 0; /* Ensure no margin at top */
  border-top: none; /* Ensure no border at top */
}

.footer h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 25px;
}

.footer h5, .footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer p {
  margin-bottom: 20px;
}

.footer .list-unstyled {
  padding-left: 0;
}

.footer .list-unstyled li {
  margin-bottom: 10px;
}

.footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.footer .list-unstyled a:hover {
  color: white;
  text-decoration: none;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: white;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer .list-inline-item:not(:last-child) {
  margin-right: 1.5rem;
}

.footer .list-inline-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer .list-inline-item a:hover {
  color: white;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .animation-container {
    height: 500px; /* Increased for better fit on medium screens */
  }
}

@media (max-width: 768px) {
  .animation-container {
    height: 480px;
    padding: 20px;
  }
  
  .tablet-device {
    transform: scale(0.9);
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .step-content h2 {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 576px) {
  .animation-container {
    height: 450px;
    padding: 15px;
  }
  
  .tablet-device {
    transform: scale(0.85);
  }
  
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .step-content h2 {
    font-size: 1.8rem;
  }
  
  .tour-section {
    padding: 60px 0;
  }
  
  .cta-section {
    padding: 60px 0 0;
  }
  
  .cta-buttons {
    padding-bottom: 60px;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .guarantee-badge {
    padding: 8px 15px;
  }
  
  .guarantee-badge i {
    font-size: 1.2rem;
  }
  
  .guarantee-badge span {
    font-size: 0.9rem;
  }
}
