/* ===========================================
   DERS NOTLARI PAGE STYLES
   Math Notebook Theme
   =========================================== */

/* --- Import Patrick Hand Font --- */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

/* --- Graph Paper Background --- */
.notes-page-wrapper {
    min-height: 90vh;
    padding: 40px 20px;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(200, 200, 230, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 230, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

/* --- Page Header --- */
.notes-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.notes-page-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 3rem;
    color: #062a54;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.notes-page-subtitle {
    font-family: 'Inter', sans-serif;
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter Section --- */
.notes-filter-section {
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px dashed #d0d0e0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: #062a54;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #00a8cc;
}

.filter-select {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    padding: 10px 15px;
    border: 2px solid #d0d0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23062a54' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filter-select:hover {
    border-color: #00a8cc;
}

.filter-select:focus {
    outline: none;
    border-color: #00a8cc;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.2);
}

.filter-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Filtre Butonu Tasarımı - Küçük Yuvarlak */
.filter-clear-btn {
    width: 45px;
    /* Dropdown yüksekliğine yakın */
    height: 45px;
    border-radius: 50%;
    /* Tam yuvarlak */
    padding: 0;

    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;

    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Animasyon ve Görünürlük Ayarları */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Varsayılan olarak görünmez ama YER KAPLAR (Kaymayı engeller) */
    opacity: 0;
    pointer-events: none;
    /* Görünmezken tıklanamaz */
    transform: scale(0.5) rotate(-45deg);
    /* Hafif küçültülmüş başlar */
    margin-left: 10px;
    /* Dropdownlardan biraz uzaklaşsın */
}

/* Aktif olduğunda alacağı hal */
.filter-clear-btn.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
}

.filter-clear-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .filter-clear-btn {
        width: 40px;
        height: 40px;
        align-self: flex-end;
        /* Mobilde sağ alt köşeye hizala */
    }
}

/* --- Filter Status --- */
.filter-status {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-status i {
    color: #ff6b35;
}

.filter-status.filtered i {
    color: #00a8cc;
}

/* --- Notes Grid Container --- */
.notes-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* --- Note Card Base Styles --- */
.note-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 25px 20px 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Scotch Tape Effect --- */
.note-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: linear-gradient(180deg,
            rgba(255, 248, 220, 0.85) 0%,
            rgba(245, 235, 200, 0.75) 50%,
            rgba(255, 248, 220, 0.85) 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

/* --- Card Content --- */
.note-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 10px;
}

.note-subject {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.15rem;
    color: #00a8cc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

.note-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: #062a54;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.note-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.note-author i {
    color: #00a8cc;
}

/* --- Card Footer (Button + Likes) --- */
.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}

/* --- External Link Button --- */
.note-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #062a54;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.note-link-btn:hover {
    background-color: #0a3d6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 42, 84, 0.3);
    color: white;
}

/* --- Like/Dislike System --- */
.note-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.rating-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    transform: scale(1.2);
}

.rating-btn.like-btn:hover,
.rating-btn.like-btn.active {
    color: #28a745;
}

.rating-btn.dislike-btn:hover,
.rating-btn.dislike-btn.active {
    color: #dc3545;
}

.rating-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    min-width: 24px;
    text-align: center;
}

.rating-count.positive {
    color: #28a745;
}

.rating-count.negative {
    color: #dc3545;
}

/* --- Floating Action Button (FAB) --- */
.fab-upload {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #062a54 0%, #0a3d6f 100%);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 42, 84, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.fab-upload:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(6, 42, 84, 0.5);
    background: linear-gradient(135deg, #00a8cc 0%, #0096b3 100%);
}

.fab-upload i {
    transition: transform 0.3s ease;
}

/* --- Tooltip for FAB --- */
.fab-tooltip {
    position: fixed;
    bottom: 45px;
    right: 100px;
    background: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 99;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.fab-upload:hover+.fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Empty State --- */
.notes-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    grid-column: 1 / -1;
}

.notes-empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.notes-empty-state h3 {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .notes-page-wrapper {
        padding: 30px 15px;
    }

    .notes-page-title {
        font-size: 2.2rem;
    }

    .notes-page-subtitle {
        font-size: 1rem;
    }

    .notes-filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-clear-btn {
        align-self: center;
    }

    .filter-status {
        font-size: 1rem;
        justify-content: center;
    }

    .notes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .note-card {
        padding: 20px 15px 15px 15px;
        height: 300px;
    }

    .fab-upload {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .fab-tooltip {
        display: none;
    }

    .note-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .note-rating {
        align-self: flex-end;
    }
}

@media (max-width: 400px) {
    .notes-page-title {
        font-size: 1.8rem;
    }

    .note-title {
        font-size: 1.2rem;
    }

    .note-card::before {
        width: 60px;
        height: 20px;
    }

    .note-card {
        height: 320px;
    }
}

/* ===========================================
   UPLOAD MODAL - Note Card Style
   =========================================== */

.upload-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.upload-modal-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px 30px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Scotch Tape Effect on Modal */
.upload-modal-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: linear-gradient(180deg,
            rgba(255, 248, 220, 0.9) 0%,
            rgba(245, 235, 200, 0.8) 50%,
            rgba(255, 248, 220, 0.9) 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.upload-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    line-height: 1;
}

.upload-modal-close:hover {
    color: #dc3545;
    transform: scale(1.1);
}

.upload-modal-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    color: #062a54;
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

/* Form Styles */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.05rem;
    color: #062a54;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #00a8cc;
    width: 18px;
    text-align: center;
}

.form-select,
.form-input,
.form-textarea {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    transition: all 0.3s ease;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23062a54' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #adb5bd;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.form-select:hover,
.form-input:hover,
.form-textarea:hover {
    border-color: #00a8cc;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00a8cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

.form-select:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-submit-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    padding: 14px 24px;
    background: linear-gradient(135deg, #062a54 0%, #0a3d6f 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.upload-submit-btn:hover {
    background: linear-gradient(135deg, #00a8cc 0%, #0096b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.4);
}

.upload-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Responsive */
@media (max-width: 520px) {
    .upload-modal-card {
        padding: 30px 20px 25px 20px;
        margin: 10px;
    }

    .upload-modal-title {
        font-size: 1.5rem;
    }

    .upload-modal-card::before {
        width: 80px;
        height: 24px;
    }
}

/* --- Custom Checkbox for Anonymous Upload --- */
.form-checkbox-group {
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0e0;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #062a54;
    border-color: #062a54;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-text i {
    color: #6c757d;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #00a8cc;
}

/* ===========================================
   NOTE DETAILS MODAL (View Mode)
   =========================================== */

.note-details-card {
    max-width: 520px;
}

.note-details-content {
    padding-top: 15px;
}

.note-details-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    color: #062a54;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.note-details-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-badge {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    color: #00a8cc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 168, 204, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.detail-badge i {
    color: #00a8cc;
}

.detail-date {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-details-uploader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.note-details-uploader i {
    color: #00a8cc;
    font-size: 1.1rem;
}

.note-details-description-wrapper {
    margin-bottom: 25px;
}

.description-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: #062a54;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-label i {
    color: #00a8cc;
}

.note-details-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-details-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #062a54 0%, #0a3d6f 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.note-details-link-btn:hover {
    background: linear-gradient(135deg, #00a8cc 0%, #0096b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.4);
    color: white;
}

/* Scrollbar styling for description */
.note-details-description::-webkit-scrollbar {
    width: 6px;
}

.note-details-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.note-details-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.note-details-description::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive */
@media (max-width: 520px) {
    .note-details-title {
        font-size: 1.5rem;
    }

    .note-details-meta {
        flex-direction: column;
        gap: 10px;
    }

    .note-details-description {
        max-height: 150px;
    }
}

/* ===========================================
   NOTE CARD ACTION BUTTONS (Delete/Favorite)
   =========================================== */

.note-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.action-btn {
    width: auto;
    height: auto;
    padding: 6px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.action-btn i {
    font-size: 1.2rem;
    color: #adb5bd;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.15);
}

.action-btn:focus {
    outline: none;
}

/* Favorite Button */
.favorite-btn:hover i {
    color: #f5a623;
}

.favorite-btn.active i {
    color: #f5a623;
}

/* Delete Button */
.delete-btn:hover i {
    color: #dc3545;
}

/* ===========================================
   FILTERS CONTAINER (for dersrehberi/dersprogramarsiv)
   =========================================== */

.filters-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px dashed #d0d0e0;
}

.filters-container .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filters-container .filter-group label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: #062a54;
}

.filters-container .filter-group select {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    padding: 10px 15px;
    border: 2px solid #d0d0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23062a54' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filters-container .filter-group select:hover {
    border-color: #00a8cc;
}

.filters-container .filter-group select:focus {
    outline: none;
    border-color: #00a8cc;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.2);
}

.filters-container .filter-group select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ===========================================
   FLOATING ACTION BUTTON (alternate .fab class)
   =========================================== */

button.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #062a54 0%, #0a3d6f 100%);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 42, 84, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

button.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(6, 42, 84, 0.5);
    background: linear-gradient(135deg, #00a8cc 0%, #0096b3 100%);
}

button.fab i {
    transition: transform 0.3s ease;
}

/* ===========================================
   UPLOAD MODAL (alternate structure)
   =========================================== */

.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.upload-modal.active {
    display: block;
}

.upload-modal .upload-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.upload-modal .upload-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    padding: 35px 30px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

/* Scotch Tape Effect on Modal */
.upload-modal .upload-modal-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: linear-gradient(180deg,
            rgba(255, 248, 220, 0.9) 0%,
            rgba(245, 235, 200, 0.8) 50%,
            rgba(255, 248, 220, 0.9) 100%);
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #dc3545;
    transform: scale(1.1);
}

.modal-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.8rem;
    color: #062a54;
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

/* ===========================================
   LOAD MORE BUTTON
   =========================================== */

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.load-more-btn {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    padding: 12px 28px;
    background: transparent;
    color: #062a54;
    border: 2px solid #062a54;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: #062a54;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 42, 84, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* ===========================================
   CHECKBOX GROUP (alternate structure)
   =========================================== */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #062a54;
}

.checkbox-group label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    color: #495057;
    cursor: pointer;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS (for new classes)
   =========================================== */

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }

    .filters-container .filter-group {
        min-width: 100%;
    }

    button.fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

@media (max-width: 520px) {
    .upload-modal .upload-modal-content {
        padding: 30px 20px 25px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .upload-modal .upload-modal-content::before {
        width: 80px;
        height: 24px;
    }
}

/* ===========================================
   SCHEDULE FILTERS (Modern Dropdowns)
   =========================================== */

.schedule-filters {
    max-width: 700px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(6, 42, 84, 0.08);
    border: 1px solid rgba(6, 42, 84, 0.08);
}

.schedule-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
    flex: 1;
}

.schedule-filter-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #062a54;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.schedule-filter-group label i {
    color: #00a8cc;
    font-size: 1rem;
}

.schedule-select {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 20px;
    padding-right: 48px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23062a54' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.schedule-select:hover {
    border-color: #00a8cc;
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.12);
}

.schedule-select:focus {
    outline: none;
    border-color: #00a8cc;
    box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.15);
}

.schedule-select:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #e8ecf0;
    box-shadow: none;
}

/* ===========================================
   SCHEDULE TABLE
   =========================================== */

.schedule-table-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(6, 42, 84, 0.1);
    font-family: 'Inter', sans-serif;
}

.schedule-table thead {
    background: linear-gradient(135deg, #062a54 0%, #0a3d6f 100%);
}

.schedule-table thead th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: none;
}

.schedule-table thead th:first-child {
    padding-left: 24px;
}

.schedule-table thead th:last-child {
    padding-right: 24px;
}

.schedule-table tbody tr {
    transition: all 0.2s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.schedule-table tbody tr:hover {
    background-color: #e8f4fc;
    transform: scale(1.005);
    box-shadow: 0 2px 12px rgba(0, 168, 204, 0.1);
}

.schedule-table tbody td {
    padding: 14px;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
}

.schedule-table tbody td:first-child {
    padding-left: 24px;
    font-weight: 600;
    color: #00a8cc;
}

.schedule-table tbody td:last-child {
    padding-right: 24px;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* Course Code Badge */
.schedule-table .course-code {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4ecf7 100%);
    color: #0077a3;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* CRN Badge */
.schedule-table .crn-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.85rem;
}

/* ===========================================
   EMPTY STATES
   =========================================== */

.schedule-empty-state,
.guide-empty-state {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(6, 42, 84, 0.06);
    border: 2px dashed #d0d8e0;
}

.schedule-empty-state i,
.guide-empty-state i {
    font-size: 4rem;
    color: #ccd5dd;
    margin-bottom: 20px;
    display: block;
}

.schedule-empty-state h3,
.guide-empty-state h3 {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 12px;
    line-height: 1.4;
}

.schedule-empty-state p,
.guide-empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Guide Content Area */
.guide-content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   SCHEDULE TABLE RESPONSIVE
   =========================================== */

@media (max-width: 1024px) {
    .schedule-table-wrapper {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .schedule-table thead th,
    .schedule-table tbody td {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .schedule-table thead th:first-child,
    .schedule-table tbody td:first-child {
        padding-left: 16px;
    }
}

@media (max-width: 768px) {
    .schedule-filters {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .schedule-filter-group {
        min-width: 100%;
    }

    .schedule-select {
        padding: 12px 16px;
        padding-right: 44px;
    }

    .schedule-table {
        font-size: 0.85rem;
    }

    .schedule-table thead th {
        font-size: 0.75rem;
        padding: 12px 8px;
    }

    .schedule-table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .schedule-empty-state,
    .guide-empty-state {
        margin: 40px 20px;
        padding: 40px 20px;
    }

    .schedule-empty-state i,
    .guide-empty-state i {
        font-size: 3rem;
    }

    .schedule-empty-state h3,
    .guide-empty-state h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

    .schedule-table thead th,
    .schedule-table tbody td {
        padding: 8px 6px;
    }

    /* Hide less important columns on mobile */
    .schedule-table th:nth-child(6),
    .schedule-table td:nth-child(6),
    .schedule-table th:nth-child(7),
    .schedule-table td:nth-child(7),
    .schedule-table th:nth-child(8),
    .schedule-table td:nth-child(8) {
        display: none;
    }
}