/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-green: #005a43; /* The exact Sir Syed Green from your screenshot */
    --accent-gold: #c5a059;   /* Elegant Gold Accent */
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #1e293b;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* 2. Navigation (College Green) */
nav {
    background: var(--primary-green);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo img {
    height: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(1.1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-gold);
}

/* 3. Hero Section */
.hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 90, 67, 0.85), rgba(0, 90, 67, 0.85)), 
                url('https://sirsyedcollege.ac.in/crm/public/uploads/banner_images/PHOTO-2025-09-17-12-20-50.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    background: var(--accent-gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: #b08d48;
    transform: translateY(-2px);
}

/* 4. Form Container */
.registration-section {
    padding: 60px 20px;
}

.form-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 35px;
    font-size: 1.8rem;
}

.form-step {
    margin-bottom: 35px;
}

.form-step h3 {
    color: var(--primary-green);
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #475569;
}

input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="file"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 90, 67, 0.1);
}


/* Checkbox Groups (Declaration) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid var(--accent-gold);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
    font-weight: 500;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

button[type="submit"]:hover {
    background: #004432;
    transform: translateY(-2px);
}

button[type="submit"]:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 650px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 6. Review & Success Views */
.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.review-label {
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.review-value {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
}

.review-actions, .success-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.btn-primary {
    flex: 1;
    padding: 14px 25px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    flex: 1;
    padding: 14px 25px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { background: #004432; transform: translateY(-2px); }
.btn-secondary:hover { background: #e2e8f0; }

/* 7. Photo Upload & Cropping */
.photo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.photo-preview-box {
    width: 60px;
    height: 80px;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

.photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-box span {
    font-size: 0.6rem;
    color: #94a3b8;
    text-align: center;
    padding: 5px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.cropper-container {
    max-height: 400px;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}

.review-photo-circular {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    background: #f1f5f9;
}

/* Existing Admin Styles */
.admin-login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 90, 67, 0.05), rgba(0, 90, 67, 0.05));
}

.login-box {
    max-width: 450px;
    padding: 60px 40px;
}

.logo-centered {
    text-align: center;
    margin-bottom: 30px;
}

.logo-centered img {
    height: 60px;
}

.btn-full {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-full:hover {
    background: #004432;
    transform: translateY(-2px);
}

.back-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.back-link a {
    color: #64748b;
    text-decoration: none;
}

.admin-badge {
    background: var(--accent-gold);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    margin-left: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-header {
    background: var(--white);
    padding: 40px 5%;
    border-bottom: 1px solid #e2e8f0;
}

.admin-content {
    padding: 40px 5%;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border-bottom: 4px solid var(--accent-gold);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-actions {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

#tableSearch {
    max-width: 400px;
    background: #f8fafc;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    text-align: left;
    padding: 18px 20px;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

tr:hover td {
    background: #f8fafc;
}

.student-info, .college-info {
    display: flex;
    flex-direction: column;
}

.text-small {
    font-size: 0.8rem;
    color: #64748b;
}

.badge-accent {
    background: rgba(197, 160, 89, 0.15);
    color: #8a6d3b;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.doc-links {
    display: flex;
    gap: 12px;
}

.doc-btn {
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.doc-btn:hover {
    transform: scale(1.2);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--white);
    color: var(--primary-green);
}

.error-text {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 900px) {
    .table-container {
        overflow-x: auto;
    }
}

.selection-card:hover {
    border-color: var(--primary-green) !important;
    background: #f0fdf4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 67, 0.08);
}

/* --- Mobile Hamburger Menu Styles --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: var(--primary-green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 50px 20px;
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.15);
        z-index: 1050;
    }

    nav ul.nav-active {
        right: 0;
    }

    nav ul li a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* Animation for active toggle */
    .menu-toggle.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.toggle span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

