/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4bb543;
    --warning-color: #f0ad4e;
    --danger-color: #d9534f;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Logo */
.logo {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--box-shadow);
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Time Display */
.time {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
    letter-spacing: 1px;
}

/* Status Box */
.status-box {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.status-box.ongoing {
    border-color: var(--success-color);
    background: rgba(75, 181, 67, 0.05);
}

.class-info {
    background: white;
    padding: 1rem;
    border-radius: calc(var(--border-radius) - 2px);
}

.class-info p {
    margin-bottom: 0.5rem;
}

.class-info p strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Button Styles */
button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

button a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Footer */
#footer {
    margin-top: auto;
    padding: 1rem;
    text-align: center;
    background: #333;
    font-size: 0.8rem;
    color: #b6babe;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .time {
        font-size: 2rem;
    }

    .status-box {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    h3 {
        font-size: 1.2rem;
    }

    .time {
        font-size: 1.8rem;
    }

    .class-info p {
        font-size: 0.9rem;
    }

    button {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container,
#footer {
    animation: fadeIn 0.5s ease-out;
}