/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f2f5, #e0e7ff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(45deg, #007bff, #ff6f61, #28a745);
    background-size: 200% 200%;
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: gradientShift 8s ease infinite;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #f0f2f5;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #f0f2f5;
}

/* Login Container */
.login-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
}

.success {
    color: #28a745;
    font-size: 14px;
    margin-bottom: 15px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group select {
    padding: 12px 15px;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #007bff, #28a745);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.forgot-password {
    display: block;
    margin: 15px 0;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.divider {
    margin: 20px 0;
    color: #666;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.g-signin2 {
    margin-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Dashboard Main Layout */
.main-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    flex-grow: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Advertisement Banner */
.ad-banner {
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 25px;
    text-align: center;
    align-self: flex-start;
    position: sticky;
    top: 120px;
    transition: transform 0.3s;
}

.ad-banner:hover {
    transform: translateY(-5px);
}

.ad-banner video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ad-banner p {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.ad-banner a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid #007bff;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.ad-banner a:hover {
    background-color: #007bff;
    color: white;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.dashboard h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.dashboard-item {
    background: linear-gradient(45deg, #007bff, #28a745);
    color: white;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s;
}

.dashboard-item:hover::before {
    left: 0;
}

.dashboard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.4);
}

.dashboard-item i {
    font-size: 36px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.dashboard-item:hover i {
    transform: scale(1.2);
}

.dashboard-item span {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.enroll-item {
    background: linear-gradient(45deg, #28a745, #17a2b8);
}

.enroll-item:hover {
    box-shadow: 0 8px 15px rgba(40, 167, 69, 0.4);
}

/* Notification/Announcement Board */
.notification-board {
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 25px;
    align-self: flex-start;
    position: sticky;
    top: 120px;
    transition: transform 0.3s;
}

.notification-board:hover {
    transform: translateY(-5px);
}

.notification-board h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    font-weight: 600;
}

.notification-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.notification-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.notification-item p {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.notification-item small {
    color: #6c757d;
    font-size: 12px;
}

/* Enrollment Form */
.form-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.form-box h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.input-group.radio-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.input-group.radio-group label {
    margin-right: 15px;
    font-size: 16px;
    color: #333;
}

.input-group.radio-group input {
    width: auto;
    padding: 0;
    margin-right: 5px;
}

.file-label {
    display: block;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    transition: background-color 0.3s, border-color 0.3s;
}

.file-label:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.input-group input[type="file"] {
    display: none;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-links a {
    color: #28a745;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff6f61;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: #ff6f61;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .ad-banner, .notification-board {
        width: 100%;
        max-width: 400px;
        position: static;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin: 0 10px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-item {
        padding: 20px;
    }

    .login-box, .form-box {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }

    .dashboard h2, .login-box h2, .form-box h2 {
        font-size: 24px;
    }

    .dashboard-item span, .ad-banner p, .notification-item p {
        font-size: 14px;
    }

    .input-group input, .input-group select, .login-btn {
        font-size: 14px;
    }
}
