﻿.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-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:hover {
    border-color: #b10000;
}

.documents-input-wrapper input:focus {
    border-color: #b10000;
    box-shadow: 0 0 0 3px rgba(177, 0, 0, 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: #b10000;
}

.documents-filter-input-wrapper input:focus {
    border-color: #b10000;
    box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.15);
}

.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: #b10000;
    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: #B60002;
    border-radius: 4px;
}

.documents-card,
.documents-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.documents-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 180px;
    border-radius: 4px;
    background-color: #CBD5E0;
}

.documents-image img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.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;
}