/* CSS Variables */
:root {
    --primary: #1a4b8c;
    --secondary: #f8b739;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2c6cb0 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


.pending-account-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pending-account-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.pending-account-info h4 {
    margin: 0;
    color: #333;
}

.pending-account-meta {
    color: #666;
    font-size: 0.9rem;
}

.pending-account-actions {
    display: flex;
    gap: 10px;
}

.approval-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.timeline-step {
    text-align: center;
    flex: 1;
    opacity: 0.5;
}

.timeline-step.active {
    opacity: 1;
    color: #0066cc;
}

.timeline-step i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-step span {
    display: block;
    font-size: 0.8rem;
}


.hero-buttons .btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* CSS Variables */
:root {
    --primary: #1a4b8c;
    --secondary: #f8b739;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2c6cb0 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0d3a70;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e6a328;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-logo h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login, .btn-admin {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-login {
    background: var(--primary);
    color: white;
}

.btn-admin {
    background: var(--secondary);
    color: var(--dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIwLjEiPjxwb2x5Z29uIHBvaW50cz0iMTIwMCwwIDEyMDAsODAwIDAsODAwIi8+PC9nPjwvc3ZnPg==');
    opacity: 0.1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.history-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
}

.history-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.school-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Vision & Motive Sections */
.vision, .motive {
    padding: 80px 0;
    background: #f8f9fa;
}

.vision-content, .motive-content {
    display: flex;
    justify-content: center;
}

.vision-card, .motive-card {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    transition: var(--transition);
}

.vision-card:hover, .motive-card:hover {
    transform: translateY(-5px);
}

.vision-card i, .motive-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.vision-card h3, .motive-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Events Section */
.events {
    padding: 80px 0;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.event-description {
    color: #666;
    margin-bottom: 1rem;
}

/* Notices Section */
.notices {
    padding: 80px 0;
    background: #f8f9fa;
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.notice-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-5px);
}

.notice-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notice-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.notice-content {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 75, 140, 0.2);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #1a4b8c 0%, #2c6cb0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.admin-card {
    max-width: 600px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 75, 140, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    margin-bottom: 1rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 5px;
    background: #eee;
    border-radius: 5px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--success);
    transition: var(--transition);
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

.error-message {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.registration-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.registration-note i {
    color: var(--info);
    margin-right: 0.5rem;
}

.help-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.help-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.help-section h4 i {
    margin-right: 0.5rem;
}

.help-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.help-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.help-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary);
}

.help-btn i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Admin Features */
.admin-features {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.admin-features h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.admin-features h4 i {
    margin-right: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.security-notice i {
    color: #856404;
    margin-right: 0.5rem;
}

.security-notice p {
    color: #856404;
    margin: 0;
}

/* Portal Pages */
.portal-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.portal-container {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.portal-header {
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-info, .parent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar, .parent-avatar, .child-avatar, .profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.student-details h1, .parent-details h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.portal-date {
    text-align: right;
}

.portal-date p {
    font-size: 1.1rem;
    color: var(--dark);
}

.portal-content {
    padding: 2rem;
}

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.performance-score, .attendance-score, .assignment-count, .notification-count, .event-count, .message-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.fee-status.paid {
    color: var(--success);
    font-size: 2rem;
    font-weight: bold;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dashboard-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-widget h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

/* Grades List */
.grades-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition);
}

.grade-item:hover {
    background: #e9ecef;
}

.subject {
    font-weight: 600;
    color: var(--dark);
}

.grade {
    font-weight: bold;
    color: var(--primary);
}

.score {
    color: #666;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition);
}

.event-item:hover {
    background: #e9ecef;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 60px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 0.8rem;
}

.event-details h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.event-details p {
    color: #666;
    font-size: 0.9rem;
}

/* Children Overview */
.children-overview {
    margin-bottom: 2rem;
}

.children-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.child-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.child-card:hover {
    transform: translateY(-5px);
}

.child-details h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.child-performance {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.performance-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.performance-badge.excellent {
    background: #d4edda;
    color: #155724;
}

.performance-badge.good {
    background: #fff3cd;
    color: #856404;
}

.attendance-rate {
    color: #666;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.action-btn i {
    font-size: 1.5rem;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.announcement-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.announcement-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Academic Tabs */
.academic-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.academic-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.academic-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.academic-panel {
    display: none;
}

.academic-panel.active {
    display: block;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subject-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.subject-teacher {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.subject-grade {
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: var(--transition);
}

/* Assignments List */
.assignments-list, .assignments-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.assignment-info h4, .assignment-info h5 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.assignment-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.assignment-status, .status-pending, .status-submitted, .status-graded {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.assignment-status.pending, .status-pending {
    background: #fff3cd;
    color: #856404;
}

.assignment-status.submitted, .status-submitted {
    background: #d1ecf1;
    color: #0c5460;
}

.assignment-status.graded {
    background: #d4edda;
    color: #155724;
}

.assignment-child {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Timetable */
.timetable {
    overflow-x: auto;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.timetable-table th, .timetable-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.timetable-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.timetable-table tr:nth-child(even) {
    background: #f8f9fa;
}

.timetable-table tr:hover {
    background: #e9ecef;
}

.timetable-selection {
    margin-bottom: 1.5rem;
}

/* Attendance */
.attendance-summary, .attendance-overview {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat h3, .stat h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.child-attendance {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.child-attendance h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.attendance-actions {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.absence-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Calendar */
.attendance-calendar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.calendar {
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.calendar-header span {
    padding: 0.5rem;
    text-align: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day {
    padding: 1rem;
    text-align: center;
    background: white;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-day.present {
    background: #d4edda;
    color: #155724;
}

.calendar-day.absent {
    background: #f8d7da;
    color: #721c24;
}

.calendar-day.holiday {
    background: #fff3cd;
    color: #856404;
}

.attendance-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-present, .legend-absent, .legend-holiday {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-present {
    background: #d4edda;
}

.legend-absent {
    background: #f8d7da;
}

.legend-holiday {
    background: #fff3cd;
}

/* Profile */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-info {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
}

.profile-details h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.profile-field {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.profile-actions {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-actions h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Children Details */
.children-details {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.child-detail {
    display: none;
}

.child-detail.active {
    display: block;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
}

.child-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.child-stats {
    display: flex;
    gap: 2rem;
}

.child-stats .stat {
    text-align: center;
}

.child-stats .stat h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.child-academics h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.subject-name {
    font-weight: 600;
    color: var(--dark);
}

.subject-grade {
    font-weight: bold;
    color: var(--primary);
}

/* Report Cards */
.report-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.report-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.report-summary {
    text-align: right;
}

.overall-grade {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.report-date {
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .portal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .student-info, .parent-info {
        flex-direction: column;
    }

    .portal-date {
        text-align: center;
    }

    .child-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .child-stats {
        justify-content: center;
    }

    .assignment-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .report-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .report-details {
        flex-direction: column;
    }

    .report-summary {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .school-stats {
        grid-template-columns: 1fr 1fr;
    }

    .events-grid, .notices-grid {
        grid-template-columns: 1fr;
    }

    .login-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
    }

    .tab-btn.active {
        border-right-color: var(--primary);
        border-bottom: none;
    }

    .academic-tabs {
        flex-direction: column;
    }

    .academic-tab {
        border-bottom: none;
        border-right: 3px solid transparent;
    }

    .academic-tab.active {
        border-right-color: var(--primary);
        border-bottom: none;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .children-cards {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .attendance-stats {
        grid-template-columns: 1fr 1fr;
    }

    .calendar-header span {
        padding: 0.25rem;
        font-size: 0.8rem;
    }

    .calendar-day {
        padding: 0.5rem;
        min-height: 40px;
    }
}










/* Registration Success Modal */
.registration-success {
    text-align: center;
    padding: 1rem;
}

.registration-success h3 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.registration-success h3 i {
    margin-right: 0.5rem;
}

.success-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-details p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.success-details p:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.success-note {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-note i {
    color: var(--info);
    margin-right: 0.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-modal {
    max-width: 600px;
}

.success-modal .modal-content {
    padding: 2rem;
}

/* Print styles */
@media print {
    .navbar, .footer, .success-actions {
        display: none !important;
    }
    
    .registration-success {
        text-align: left;
    }
    
    .success-details {
        background: white;
        border: 2px solid #333;
    }
}
/* Registration Form Styles */
.signup-section {
    display: none;
}

#studentSignupFields,
#parentSignupFields {
    display: none;
}

.signup-section.active {
    display: block;
}



/* Admin Portal Styles */
.admin-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.quick-actions-admin {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.quick-actions-admin h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Registration Management */
.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.registration-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.registration-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.registration-info p {
    margin-bottom: 0.25rem;
    color: #666;
}

.registration-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

/* Admin Forms */
.admin-form {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.existing-notices, .existing-events {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.notices-list, .events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item, .event-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.notice-item h4, .event-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.notice-meta, .event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Success Modal Styles */
.registration-success {
    text-align: center;
    padding: 1rem;
}

.registration-success h3 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-details p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.success-details p:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.success-note {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-modal {
    max-width: 600px;
}

.success-modal .modal-content {
    padding: 2rem;
}



/* Admin Login & Signup Specific Styles */
.admin-login .login-card,
.admin-signup .login-card {
    max-width: 600px;
}

.login-footer {
    text-align: center;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.admin-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.admin-requirements h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.admin-requirements li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding-left: 1.5rem;
}

.admin-requirements li:before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.admin-requirements li:last-child {
    border-bottom: none;
}

/* Admin Management Styles */
.admin-management-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.current-admin-info,
.pending-admin-approvals {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.admins-list,
.pending-admins-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-item,
.pending-admin-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.pending-admin-item {
    border-left-color: var(--warning);
}

.admin-item h4,
.pending-admin-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.admin-meta,
.pending-admin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* Role Badges */
.role-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-super_admin {
    background: #dc3545;
    color: white;
}

.role-academic_admin {
    background: #007bff;
    color: white;
}

.role-student_admin {
    background: #28a745;
    color: white;
}

.role-finance_admin {
    background: #6f42c1;
    color: white;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Admin Registration Specific Styles */
.admin-signup .login-card {
    max-width: 800px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.form-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.terms-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.terms-content h5 {
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Enhanced Security Notice */
.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.security-notice i {
    color: #856404;
    margin-right: 0.5rem;
}

.security-notice p {
    color: #856404;
    margin: 0;
}

/* Enhanced Admin Requirements */
.admin-requirements {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.admin-requirements h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.admin-requirements li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #cce7ff;
    position: relative;
    padding-left: 1.5rem;
}

.admin-requirements li:before {
    content: '🔒';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.admin-requirements li:last-child {
    border-bottom: none;
}

/* Form validation styles */
input:invalid {
    border-color: var(--accent);
}

input:valid {
    border-color: var(--success);
}

.error-message {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Print styles for confirmation */
@media print {
    .navbar, .login-footer, .admin-requirements, .security-notice, .success-actions {
        display: none !important;
    }
    
    .registration-success {
        text-align: left;
    }
    
    .success-details {
        background: white;
        border: 2px solid #333;
    }
}

/* Admin Registration Specific Styles */
.admin-signup .login-card {
    max-width: 800px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.form-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.password-requirements li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.terms-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.terms-content h5 {
    color: var(--dark);
    margin: 1rem 0 0.5rem 0;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Enhanced Security Notice */
.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.security-notice i {
    color: #856404;
    margin-right: 0.5rem;
}

.security-notice p {
    color: #856404;
    margin: 0;
}

/* Enhanced Admin Requirements */
.admin-requirements {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.admin-requirements h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-requirements ul {
    list-style-type: none;
    padding-left: 0;
}

.admin-requirements li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #cce7ff;
    position: relative;
    padding-left: 1.5rem;
}

.admin-requirements li:before {
    content: '🔒';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.admin-requirements li:last-child {
    border-bottom: none;
}

/* Form validation styles */
input:invalid {
    border-color: var(--accent);
}

input:valid {
    border-color: var(--success);
}

.error-message {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Print styles for confirmation */
@media print {
    .navbar, .login-footer, .admin-requirements, .security-notice, .success-actions {
        display: none !important;
    }
    
    .registration-success {
        text-align: left;
    }
    
    .success-details {
        background: white;
        border: 2px solid #333;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    margin-top: 1rem;
}

/* Success Modal Styles */
.registration-success {
    text-align: center;
    padding: 1rem;
}

.registration-success h3 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-details p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.success-details p:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.success-note {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-modal {
    max-width: 600px;
}

.success-modal .modal-content {
    padding: 2rem;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 75, 140, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

/* Checkbox Styles */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox span {
    flex: 1;
}

/* Button Styles */
.btn-login {
    width: 100%;
    margin-bottom: 1rem;
    padding: 12px 24px;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-signup .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}