/* --- General Body Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
    overflow-x: hidden;
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #fff;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.zarm-logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.zarm-logo img:hover {
    transform: scale(1.05);
}

.navbar-title {
    margin: 0;
    font-size: 1.6rem;
    color: #2c3e50;
    font-weight: 500;
}

.navbar-links a {
    color: #6899AE;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-links a:hover {
    background-color: #6899AE;
    color: #fff;
}

/* --- Main Content Area --- */
.main-section {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

/* --- File List Container --- */
.files-container {
    background-color: #6899AE;
    border-radius: 10px;
    padding: 30px 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.files-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Search Form --- */
.search-form {
    position: relative;
    flex: 1 1 250px;
    max-width: 450px;
    width: 100%;
}

.search-form input {
    width: 100%;
    padding: 10px 40px 10px 50px; /* left padding for search icon, right for clear button */
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    color: #fff;
    outline: none;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.25s ease;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form input:focus {
    background: rgba(255,255,255,0.35);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.search-form button[type="submit"] {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.search-form input:not(:placeholder-shown) ~ .clear-btn,
.clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.clear-btn:hover {
    color: #fff;
}

/* --- List Group --- */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-group-item {
    background-color: #fff;
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    border-color: #6899AE;
    color: #6899AE;
}

.list-group-item i {
    font-size: 1.6rem;
    color: #6899AE;
    transition: 0.2s ease;
}

.list-group-item:hover i {
    color: #3c6d82;
}

.list-group-item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    transition: 0.25s;
}

.list-group-item:hover span {
    color: #6899AE;
}

.list-group-item input[type="checkbox"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: #6899AE;
}

/* --- Buttons --- */
.btn {
    background-color: #fff;
    color: #6899AE;
    border: 1px solid #fff;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.btn:hover {
    background-color: #f0f0f0;
    color: #3c6d82;
}

#download-selected-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 10px;
    justify-content: center;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    background-color: transparent;
    border-color: transparent;
    color: #fff;
}

.back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    font-size: 1rem;
}

.pagination a, .pagination span {
    background: rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.pagination .current-page {
    background: #fff;
    color: #6899AE;
}

/* --- Misc --- */
.item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.fa-folder {
    color: #8ac1de;
}

.navigation-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.breadcrumbs {
    background-color: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .breadcrumb-separator {
    color: rgba(255,255,255,0.7);
    margin: 0 5px;
}

.breadcrumbs .breadcrumb-active {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
