/* Documents Page Styles */
.docs-page-section {
    padding: 60px 0;
    margin-bottom: 112px;
    background-color: #fff;
}

.docs-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
}

/* Filters */
.docs-filters {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.docs-search {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.docs-search .input-icon {
    position: relative;
    width: 100%;
}

.docs-search .input-icon svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8E98A8;
}

.docs-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    outline: none;
    transition: border-color 0.3s ease;
}

.docs-search input::placeholder {
    color: #9CA3AF;
}

.docs-search input:focus {
    border-color: #1A7A55;
}

.docs-select-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.docs-filter-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-filter-col label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.docs-filter-col select {
    padding: 12px 35px 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #6B7280;
    background-color: #fff;
    appearance: none;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: border-color 0.3s ease;
}

.docs-filter-col select:focus {
    border-color: #1A7A55;
}

.docs-date-selects {
    display: flex;
    gap: 10px;
}

/* List */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.docs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 20px;
}

.docs-item:first-child {
    border-top: 1px solid #E5E7EB;
}

.docs-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.docs-icon img {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.docs-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.docs-details h3 {
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    color: #111827;
    margin: 0;
}

.docs-size {
    font-size: 14px;
    color: #6B7280;
}

.docs-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-consulter {
    padding: 10px 20px;
    border: 1px solid #1A7A55;
    border-radius: 6px;
    color: #1A7A55;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-consulter:hover {
    background-color: #f0fdf4;
}

.btn-telecharger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1A7A55;
    border: 1px solid #1A7A55;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-telecharger:hover {
    background-color: #145D40;
    border-color: #145D40;
}

/* Responsive */
@media (max-width: 991px) {
    .docs-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .docs-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .docs-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .docs-search {
        max-width: 100%;
    }
    
    .docs-date-selects {
        flex-wrap: wrap;
    }
}
