/* Custom styles for MUST Lecturer System */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --deep-teal: #0A6E6E;
    --coral-pink: #FF6F61;
    --soft-ivory: #FFF8E7;
    --golden-yellow: #FFC107;
    --charcoal-gray: #2D3748;
    --light-gray: #EDF2F7;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--charcoal-gray);
    background: var(--soft-ivory);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-teal);
    font-weight: 700;
}

h1 {
    font-size: 2.75rem; /* 44px */
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 2rem; /* 32px */
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    color: var(--charcoal-gray);
    margin-bottom: 1.25rem;
}

a {
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--coral-pink) !important;
    transform: translateY(-2px);
}

/* Navigation links */
nav {
    background: linear-gradient(to right, var(--deep-teal), var(--coral-pink));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem; /* 18px */
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    background: var(--golden-yellow) !important;
    color: var(--charcoal-gray) !important;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeInUp 1s ease-out forwards !important;
}

/* Card styling with glassmorphism */
.card {
    background: rgba(255, 248, 231, 0.9); /* Soft Ivory with opacity */
    backdrop-filter: blur(8px);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Lecturer card */
.lecturer-card {
    background: linear-gradient(to bottom right, var(--soft-ivory), var(--light-gray)) !important;
    border: 2px solid var(--deep-teal);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.lecturer-card:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--light-gray) !important;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 14px;
    border: 1px solid var(--light-gray) !important;
    text-align: center;
    font-size: 0.875rem; /* 14px */
    color: var(--charcoal-gray);
}

.schedule-table th {
    background: var(--deep-teal) !important;
    color: white !important;
    font-weight: 600;
}

.schedule-table td {
    background: var(--soft-ivory) !important;
}

/* Buttons */
button {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: var(--deep-teal);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

button:hover {
    background: var(--coral-pink) !important;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--deep-teal), var(--coral-pink)) !important;
    color: white !important;
    padding: 32px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Input fields */
input,
select,
textarea {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--deep-teal) !important;
    border-radius: 8px;
    padding: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    background: var(--soft-ivory);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--golden-yellow) !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4) !important;
    outline: none;
}

/* Search section */
.search-section {
    background: var(--light-gray) !important;
    border: 2px solid var(--deep-teal);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* General layout */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
}

/* Override Tailwind */
.bg-white {
    background-color: #ffffff !important;
}

.text-indigo-900 {
    color: var(--deep-teal) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem; /* 36px */
    }

    h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    p {
        font-size: 0.875rem; /* 14px */
    }

    .schedule-table th,
    .schedule-table td {
        font-size: 0.75rem; /* 12px */
        padding: 10px;
    }

    nav a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .card,
    .lecturer-card {
        padding: 16px;
    }

    .search-section {
        padding: 20px;
    }
}