﻿.route {
    display: flex;
    padding: 20px 0 10px;
    column-gap: 4px;
    font-size: 16px;
    line-height: 24px;
}

.route-home {
    color: #718096;
}

.filter-group {
    overflow: initial;
}

.documents-wrapper {
    flex-grow: 1;
}

.documents-field {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.documents-field-wrapper {
    display: flex;
    column-gap: 10px;
    padding: 0 10px 10px;
}

    .documents-field-wrapper .documents-section {
        margin: 0;
    }

.documents-field-text {
    font-size: 14px;
    margin-left: 10px;
}

.documents-reset-button-wrapper {
    padding: 0 10px 10px;
    margin-top: 5px;
}

.documents-reset-button {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #003B8E;
    background-color: #fff;
    border: 2px solid #003B8E;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

    .documents-reset-button:hover {
        background-color: #003B8E;
        color: #fff;
    }

    .documents-reset-button:active {
        transform: scale(0.98);
    }

.documents-field label,
.documents-section {
    font-size: 14px;
    line-height: 20px;
}

.documents-section {
    margin: 5px 10px;
}

.documents-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.documents-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

    .documents-input-wrapper input {
        width: 100%;
        padding: 14px 45px 14px 16px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        transition: all 0.25s ease;
        background-color: #fff;
    }

        .documents-input-wrapper input[type="date"] {
            padding: 14px 16px;
            position: relative;
        }

            .documents-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
                cursor: pointer;
                opacity: 1;
                position: absolute;
                right: 14px;
                width: 20px;
                height: 20px;
            }

        .documents-input-wrapper input:hover {
            border-color: #003B8E;
        }

        .documents-input-wrapper input:focus {
            border-color: #003B8E;
            box-shadow: 0 0 0 3px rgba(0, 59, 142, 0.15);
        }

.documents-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.documents-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

    .documents-dropdown li {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .documents-dropdown li:hover {
            background: #f2f2f2;
        }

        .documents-dropdown li.selected {
            background: #b10000;
            color: white;
        }

.see-more img {
    transform: rotate(360deg);
}

.documents-grid {
    grid-template-columns: repeat(1fr, 3);
}

.documents-header {
    display: flex;
    justify-content: space-between;
}

.header-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
}

.header-filter {
    display: flex;
    column-gap: 16px;
    align-items: center;
    margin: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.header-filter-text {
    font-size: 14px;
    font-weight: 400;
}

.header-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
}

.documents-filter-section {
    font-family: "Inter", sans-serif;
    width: 100%;
}

.documents-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.documents-filter-input-wrapper {
    position: relative;
    width: 100%;
    margin-top: 6px;
}

    .documents-filter-input-wrapper input {
        width: 100%;
        padding: 10px 45px 10px 15px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        transition: all 0.25s ease;
        background-color: #fff;
    }

        .documents-filter-input-wrapper input:hover {
            border-color: var(--color-primary);
        }

        .documents-filter-input-wrapper input:focus {
            border-color: var(--color-primary);
        }

.documents-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
    transition: transform .2s ease;
}

.documents-filter-input-wrapper.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.documents-filter-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 99;
}

    .documents-filter-dropdown li {
        padding: 12px 16px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .documents-filter-dropdown li:hover {
            background: #f2f2f2;
        }

        .documents-filter-dropdown li.selected {
            background: var(--color-primary);
            color: white;
        }


.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.documents-content {
    border: 2px solid #E4E4E4;
    border-top-color: #003B8E;
    border-radius: 4px;
}

.documents-card,
.documents-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.documents-info {
    padding: 16px;
}

.documents-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

    .documents-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.documents-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
}


.documents-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.documents-stars {
    display: flex;
    gap: 4px;
}

    .documents-stars .fa-star,
    .documents-stars .fa-star-half-alt {
        color: #E8AE0E;
        font-size: 14px;
    }

    .documents-stars .far.fa-star {
        color: #D8D8D8;
        font-size: 14px;
    }

.documents-rating-text {
    font-size: 12px;
    color: #0180cd;
    display: block;
    position: unset;
}

.documents-title,
.documents-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.documents-title {
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.documents-time {
    font-size: 14px;
    line-height: 20px;
}

.documents-description {
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
}

.interact {
    display: flex;
    justify-content: space-between;
}

.interact-like,
.interact-views {
    display: flex;
    align-items: center;
    column-gap: 4px;
    font-size: 14px;
    line-height: 20px;
}

    .interact-like img,
    .interact-views img {
        width: 18px;
    }

input[type=checkbox] {
    opacity: 1;
    position: relative;
}

.custom-checkbox:checked::after {
    left: 5px;
    top: 2px;
}

/* Empty State Styles - giống competition */
.documents-grid .empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    background: #fff;
    border-radius: 8px;
    margin: 0;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

    .empty-state-icon svg {
        width: 120px;
        height: 120px;
    }

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.empty-state-message {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .empty-state {
        padding: 60px 15px;
        min-height: 400px;
    }

    .empty-state-icon svg {
        width: 100px;
        height: 100px;
    }

    .empty-state-title {
        font-size: 20px;
    }

    .empty-state-message {
        font-size: 14px;
    }
}

/* Pagination disabled state */
.page-arrow.disabled,
.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width: 991.98px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .documents-image {
        height: 360px;
    }
}

@media screen and (max-width: 500.98px) {
    .documents-header {
        flex-direction: column;
    }

    .header-filter-text {
        white-space: nowrap;
    }

    .documents-image {
        height: 250px;
    }
}

@media screen and (max-width: 450.98px) {
    .documents-field-wrapper {
        flex-direction: column;
        row-gap: 10px;
    }

    .documents-image {
        height: 200px;
    }

    .documents-info {
        padding-top: 0;
    }
}