/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
}

/* Header Image Section */
.header {
    width: 100%;
}

.header-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.responsive-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.header-overlay h1 {
    color: white;
    font-size: 2.8rem;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 500px;
    background: #f9fafc;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eaeaea;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.error-message {
    color: #e74c3c;
    background: #ffeaea;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group input::placeholder {
    color: #7f8c8d;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.toggle-password:hover {
    background-color: #f0f7ff;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 0.95rem;
}

.remember-me input {
    width: 18px;
    height: 9px;
    cursor: pointer;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-align: right;
    line-height: 1.4;
    display: inline-block;
    max-width: 300px;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(to right, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== HOME PAGE STYLES ===== */
.home-page {
    background: #f0f2f5;
    padding-top:1px; /* Offset for fixed header */
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 5px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 5px 5px;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.menu a:hover {
    background: #f5f7fa;
    color: #3498db;
}

.menu a.active {
    background: #3498db;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #eaeaea;
}

.user-details {
    text-align: right;
}

.user-details .user-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-details .user-id {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Home Page Main Content */
.home-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Section */
.welcome-section {
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.welcome-section h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 2.2rem;
    font-weight: 700;
}

.welcome-section p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Quick Statistics Section */
.quick-stats-section {
    margin-bottom: 40px;
}

.quick-stats-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stats-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 15px 0;
}

.stats-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Color variations for stats cards */
.stats-card:nth-child(1) { border-top-color: #3498db; }
.stats-card:nth-child(1) .stats-icon,
.stats-card:nth-child(1) .stats-number { color: #3498db; }

.stats-card:nth-child(2) { border-top-color: #e74c3c; }
.stats-card:nth-child(2) .stats-icon,
.stats-card:nth-child(2) .stats-number { color: #e74c3c; }

.stats-card:nth-child(3) { border-top-color: #2ecc71; }
.stats-card:nth-child(3) .stats-icon,
.stats-card:nth-child(3) .stats-number { color: #2ecc71; }

.stats-card:nth-child(4) { border-top-color: #9b59b6; }
.stats-card:nth-child(4) .stats-icon,
.stats-card:nth-child(4) .stats-number { color: #9b59b6; }

.stats-card:nth-child(5) { border-top-color: #f39c12; }
.stats-card:nth-child(5) .stats-icon,
.stats-card:nth-child(5) .stats-number { color: #f39c12; }

.stats-card:nth-child(6) { border-top-color: #1abc9c; }
.stats-card:nth-child(6) .stats-icon,
.stats-card:nth-child(6) .stats-number { color: #1abc9c; }

.stats-card:nth-child(7) { border-top-color: #d35400; }
.stats-card:nth-child(7) .stats-icon,
.stats-card:nth-child(7) .stats-number { color: #d35400; }

.stats-card:nth-child(8) { border-top-color: #34495e; }
.stats-card:nth-child(8) .stats-icon,
.stats-card:nth-child(8) .stats-number { color: #34495e; }

/* ===== COMMON FOOTER STYLES ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.developer-credit {
    font-size: 0.95rem;
    color: #ecf0f1;
}

.developer-credit strong {
    color: #3498db;
    font-weight: 600;
}
/* ===== STUDENT DETAILS PAGE STYLES ===== */

.student-details-section {
    margin-top: 30px;
}

.student-details-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
    padding-bottom: 15px;
   
}

.batch-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.batch-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    font-size: 1.5rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.student-table thead {
    background: #3498db;
    color: white;
}

.student-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2980b9;
}

.student-table td {
    padding: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #f0f2f5;
}

.student-table tbody tr:hover {
    background: #f8f9fa;
}

.student-table tbody tr:last-child td {
    border-bottom: none;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-data-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive styles for student details page */
@media (max-width: 768px) {
    .batch-section {
        padding: 15px;
    }
    
    .student-table th, 
    .student-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .student-details-section h2 {
        font-size: 1.6rem;
    }
    
    .batch-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .student-table th, 
    .student-table td {
        padding: 8px;
        font-size: 0.85rem;
    }
}