body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    color: #333;
    background-color: #fcfcfc;
}
h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}
.search-container {
    margin-bottom: 25px;
}
/* Wrapper pentru a poziționa butonul X în interiorul barei */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-size: 16px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}
.search-box:focus {
    border-color: #3498db;
}
/* Butonul de ștergere "X" */
.clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #95a5a6;
    cursor: pointer;
    display: none; /* Ascuns implicit, JS îl va afișa când se tastează */
    padding: 0;
    line-height: 1;
}
.clear-btn:hover {
    color: #c0392b;
}
ul {
    list-style-type: none;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
li {
    padding: 14px 20px;
    border-bottom: 1px solid #eceff1;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
li:last-child {
    border-bottom: none;
}
li:hover {
    background-color: #f8fafc;
}
li.hidden {
    display: none !important;
}
/* Stil pictogramă PDF */
.pdf-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}
/* Link-ul ocupă restul spațiului din stânga și permite rânduri multiple */
li a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    flex-grow: 1;
    padding-right: 20px;
    white-space: normal; 
    word-break: break-word;
}
li a:hover {
    color: #1a5276;
    text-decoration: underline;
}
/* Coloana fixă 1: Mărimea fișierului */
.dimensiune-fisier {
    color: #7f8c8d;
    font-size: 14px;
    flex-basis: 90px;
    min-width: 90px;
    text-align: right;
    padding-right: 20px;
    white-space: nowrap;
}
/* Coloana fixă 2: Data modificării */
.data-modificare {
    color: #7f8c8d;
    font-size: 14px;
    flex-basis: 140px;
    min-width: 140px;
    text-align: right;
    white-space: nowrap;
}
.no-results {
    display: none;
    color: #e74c3c;
    font-style: italic;
    padding: 10px 5px;
}
/* Zona butoanelor de sortare */
.sort-wrapper {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
.sort-btn {
    background-color: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #334155;
}
.sort-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}
/* Stil pentru butonul selectat activ */
.sort-btn.active {
    background-color: #3498db;
    color: #fff;
    border-color: #2980b9;
    font-weight: bold;
}
/* Stil pentru headers-urile de delimitare a lunilor */
.month-divider {
    background-color: #f1f5f9;
    padding: 8px 15px;
    font-weight: bold;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
    text-transform: capitalize;
}
/* Stil pentru contorul dinamic de documente */
.document-counter {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}