  :root {
            --primary: #1a5fb4;
            --secondary: #c6463b;
            --light: #f8f9fa;
            --dark: #343a40;
  }
  
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding-bottom: 2rem;
            padding-bottom: 80px;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary) 0%, #1c71d8 100%);
            color: white;
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .card {
            border-radius: 10px;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            border: none;
            margin-bottom: 1.5rem;
        }
        
        .card-header {
            border-radius: 12px 12px 0 0 !important;
            font-weight: 600;
        }
        
     #formSection {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section {
    width: 100%;
    max-width: 900px;
     border-radius: 15px;
    padding: 20px;
    justify-content: center;
}

        
        .btn-primary {
            background: linear-gradient(to right, var(--primary), #1c71d8);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
        }
        
        .btn-danger {
            background: linear-gradient(to right, var(--secondary), #e25b45);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
        }
        
        .btn-success {
            background: linear-gradient(to right, #2ea44f, #3ac162);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
        }
        
        .camera-container {
            background: #f0f4f8;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }
        
        #video {
            width: 100%;
            border-radius: 6px;
            background: #ddd;
        }
        
        .photo-preview {
            width: 120px;
            height: 150px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin: 0 auto;
            background: #f8f9fa;
        }
        
        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }
        
       /* ==== SCHOOL ID CARD STYLE ENHANCEMENT ==== */

/* Front side look */
/* ===== FRONT SIDE DESIGN - SCHOOL STYLE (PHOTO ON TOP) ===== */
#idCardFront {
 width: 100%; max-width: 300px; 
 background: white;
  border-radius: 12px; 
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
 overflow: hidden;
  border: 1px solid #e0e0e0; 
 margin: 0 auto;
}

/* Decorative circles (background aesthetics) */
#idCardFront::before,
#idCardFront::after {
  content: "";
  border-radius: 50%;
  background: rgba(26, 95, 180, 0.1);
   position: relative;   /* REQUIRED */
    overflow: hidden;     /* THIS FIXES OVERFLOW */
}
#idCardFront::before {
  top: -60px;
  left: -60px;
  width: 150px;
  height: 150px;
}
#idCardFront::after {
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
}

/* School name */
#idCardFront .university-logo {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  margin-bottom: 4px;
  text-align: center;
}

/* ID Number styling */
#idCardFront .id-number {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 8px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
  overflow: hidden;
  border: 1px solid #e0e0e0; 
 margin: 0 auto;
 border-radius: 12px; 
}

/* Student Photo */
#idCardFront .photo-preview {
  width: 120px; height: 150px; 
  border: 2px dashed #ddd; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  margin: 0 auto;
   background: #f8f9fa;
}

#idCardFront .photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Student Info */
#idCardFront .student-details {
  margin-top: 10px;
  text-align: center;
}

#idCardFront .student-details h5 {
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

#idCardFront .student-details p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

#idCardFront .student-details strong {
  color: #333;
  font-weight: 500;
}

/* Signature & Footer */
#idCardFront .authorized-signature {
  width: 140px;
  margin: 0.8rem auto 0 auto;
  border-bottom: 1px solid #777;
}

#idCardFront .authorized-signature::after {
  content: "Class Teacher";
  display: block;
  font-size: 0.75rem;
  color: #555;
  margin-top: 2px;
  text-align: center;
}

#idCardFront .university-url {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

/* ===== BACK SIDE ===== */
#idCardBack {
 width: 100%;
  max-width: 300px; 
 background: white; 
 border-radius: 12px; 
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden; 
 border: 1px solid #e0e0e0; 
 margin: 0 auto;
}

#idCardBack::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(26, 95, 180, 0.08);
  border-radius: 50%;
}

#idCardBack h6 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Barcode spacing */
#idCardBack .barcode {
  border: 1px solid #ddd;
  background-color: #fff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Info text alignment */
#idCardBack .student-info p {
  margin-bottom: 0.4rem;
  color: #333;
}

/* Principal signature section */
#idCardBack .text-center.mt-4 {
  margin-top: 1.5rem !important;
}

#idCardBack .text-center.mt-4::before {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  background: #777;
  margin: 0 auto 4px;
}

#idCardBack .text-center.mt-4::after {
  content: "Principal";
  display: block;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

/* Emergency note */
#idCardBack .text-muted {
  font-size: 0.8rem;
  color: #777 !important;
}

/* Card shadow and rounded edges for both sides */
#idCardFront, #idCardBack {
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.barcode { 
    height: 80px; 
    background: white; 
    background-image: repeating-linear-gradient(90deg, #000 0px, #000 1px, transparent 1px, transparent 20px);
     margin: 1rem 0; position: relative; 
    } 
        
     .list-group-item {
            transition: all 0.3s;
            border-left: 4px solid transparent;
        }
        
        .list-group-item:hover {
            background: #f8f9fa;
            border-left: 4px solid var(--primary);
        }
        
        .camera-options {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2rem;
            position: relative;
        }
        
        .step-indicator::before {
            content: "";
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background: #dee2e6;
            z-index: 1;
        }
        
        .step {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: 2px solid #dee2e6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            position: relative;
            z-index: 2;
        }
        
        .step.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .step.completed {
            background: #2ea44f;
            color: white;
            border-color: #2ea44f;
        }
        
        .step-label {
            position: absolute;
            top: 45px;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .step.active .step-label {
            color: var(--primary);
            font-weight: 600;
        }
        
        .nav-tabs .nav-link.active {
            font-weight: 600;
            color: var(--primary);
        }
        
        @media (max-width: 768px) {
            .step-label {
                font-size: 0.7rem;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .header p {
                font-size: 1rem;
            }
        }
        
        .instruction {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 0.25rem;
        }
      .footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-top: 1px solid #ddd;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.center-icons {
    display: flex;
    gap: 60px;
}

.center-icons button {
    background: none;
    border: none;
    font-size: 32px;
    color: black;
}

.d-flex.gap-2 > input {
    flex: 1;
}