/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #4a6741 50%, #5d4e75 75%, #2c3e50 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: subtleFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 35%);
    pointer-events: none;
    z-index: -1;
    animation: subtleFloat 25s ease-in-out infinite reverse;
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    25% { 
        transform: translateY(-10px) translateX(5px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-5px) translateX(-3px);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-8px) translateX(2px);
        opacity: 0.85;
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 60%;
    animation-delay: 9s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-delay: 12s;
    animation-duration: 24s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: 15s;
    animation-duration: 19s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Landscape Background Elements */
.landscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

/* Sky and Clouds */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    opacity: 0.6;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 15%;
    left: 10%;
    animation: cloudFloat 25s infinite linear;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 15px;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 25%;
    left: 60%;
    animation: cloudFloat 30s infinite linear reverse;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 50px;
    height: 35px;
    top: -10px;
    right: 10px;
}

.cloud-3 {
    width: 120px;
    height: 35px;
    top: 35%;
    left: 80%;
    animation: cloudFloat 35s infinite linear;
}

.cloud-3::before {
    width: 60px;
    height: 45px;
    top: -22px;
    left: 20px;
}

.cloud-3::after {
    width: 45px;
    height: 30px;
    top: -12px;
    right: 25px;
}

.cloud-4 {
    width: 90px;
    height: 28px;
    top: 10%;
    left: 75%;
    animation: cloudFloat 28s infinite linear reverse;
}

.cloud-4::before {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 12px;
}

.cloud-4::after {
    width: 40px;
    height: 25px;
    top: -8px;
    right: 20px;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(calc(100vw + 50px));
    }
}

/* Mountains */
.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
}

.mountain {
    position: absolute;
    bottom: 0;
}

.mountain-1 {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 300px solid rgba(79, 102, 129, 0.3);
    left: -50px;
    filter: blur(1px);
}

.mountain-2 {
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-right: 250px solid transparent;
    border-bottom: 400px solid rgba(52, 73, 94, 0.4);
    left: 200px;
    filter: blur(0.5px);
}

.mountain-3 {
    width: 0;
    height: 0;
    border-left: 180px solid transparent;
    border-right: 180px solid transparent;
    border-bottom: 250px solid rgba(44, 62, 80, 0.5);
    right: 100px;
}

/* Forest/Trees */
.forest {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
}

.tree {
    position: absolute;
    bottom: 0;
}

.tree::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: rgba(101, 67, 33, 0.4);
    border-radius: 4px;
}

.tree::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 60px solid rgba(76, 140, 74, 0.3);
    border-radius: 50% 50% 0 0;
}

.tree-1 {
    left: 5%;
    animation: treeWave 8s infinite ease-in-out;
}

.tree-2 {
    left: 15%;
    animation: treeWave 10s infinite ease-in-out reverse;
}

.tree-2::after {
    border-bottom: 50px solid rgba(76, 140, 74, 0.25);
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
}

.tree-3 {
    left: 75%;
    animation: treeWave 12s infinite ease-in-out;
}

.tree-3::after {
    border-bottom: 70px solid rgba(76, 140, 74, 0.35);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
}

.tree-4 {
    left: 85%;
    animation: treeWave 9s infinite ease-in-out reverse;
}

.tree-4::after {
    border-bottom: 45px solid rgba(76, 140, 74, 0.28);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
}

.tree-5 {
    left: 95%;
    animation: treeWave 11s infinite ease-in-out;
}

.tree-5::after {
    border-bottom: 55px solid rgba(76, 140, 74, 0.3);
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
}

@keyframes treeWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

/* Water */
.water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(0deg, 
        rgba(52, 152, 219, 0.1) 0%, 
        rgba(41, 128, 185, 0.08) 50%, 
        transparent 100%);
    border-radius: 50%;
}

.wave-1 {
    animation: waveMove 15s infinite linear;
    opacity: 0.6;
}

.wave-2 {
    animation: waveMove 20s infinite linear reverse;
    opacity: 0.4;
    animation-delay: -5s;
}

.wave-3 {
    animation: waveMove 25s infinite linear;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes waveMove {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Birds */
.birds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.bird {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.4;
}

.bird::before,
.bird::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 50%;
    animation: birdWing 2s infinite ease-in-out;
}

.bird::before {
    left: 2px;
    transform: rotate(-20deg);
}

.bird::after {
    right: 2px;
    transform: rotate(20deg);
    animation-delay: 0.1s;
}

.bird-1 {
    top: 20%;
    left: -50px;
    animation: birdFly 30s infinite linear;
}

.bird-2 {
    top: 25%;
    left: -80px;
    animation: birdFly 35s infinite linear;
    animation-delay: -10s;
}

.bird-3 {
    top: 15%;
    left: -60px;
    animation: birdFly 40s infinite linear;
    animation-delay: -20s;
}

@keyframes birdFly {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(25vw) translateY(-20px);
    }
    50% {
        transform: translateX(50vw) translateY(10px);
    }
    75% {
        transform: translateX(75vw) translateY(-15px);
    }
    100% {
        transform: translateX(100vw) translateY(5px);
    }
}

@keyframes birdWing {
    0%, 100% {
        transform: rotate(-20deg) scaleY(1);
    }
    50% {
        transform: rotate(-45deg) scaleY(0.5);
    }
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 10px 5px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 10px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 27px;
    z-index: -1;
}

.header-content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.header-content .logo i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-top: 4px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.2));
    border-radius: 21px;
    z-index: -1;
}

.stat-card:hover {
    /* Remove transform jumping animation */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stat-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    outline: none;
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    /* Remove transform jumping animation */
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-container select {
    padding: 16px 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-container select option {
    background: rgba(40, 60, 120, 0.95);
    color: white;
}

.filter-container select:focus {
    outline: none;
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Documents Section */
.documents-section {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 350px); /* Adjusted for reduced padding */
    min-height: 350px;
}

.documents-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.documents-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    border-radius: 21px;
    z-index: -1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    /* Remove transform jumping animation */
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn:hover i {
    transform: rotate(180deg);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.view-btn {
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 10px;
    margin-right: -10px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 10px;
    margin-right: -10px;
}

/* Custom Scrollbar */
.documents-grid::-webkit-scrollbar,
.documents-list::-webkit-scrollbar {
    width: 8px;
}

.documents-grid::-webkit-scrollbar-track,
.documents-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.documents-grid::-webkit-scrollbar-thumb,
.documents-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.documents-grid::-webkit-scrollbar-thumb:hover,
.documents-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.document-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.document-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.2));
    border-radius: 21px;
    z-index: -1;
}

.document-card:hover {
    /* Remove transform jumping animation */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Remove hover "jumping" animations from UI elements */

.document-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.document-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 15px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.document-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.document-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.document-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    color: rgba(255, 255, 255, 0.8);
}

.download-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.download-btn {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    /* Keep download button hover animation for download action feedback */
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* List View Styles */
.documents-list .document-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
}

.documents-list .document-header {
    margin-bottom: 0;
    flex: 1;
}

.documents-list .document-info {
    flex: 1;
}

.documents-list .document-description {
    margin-bottom: 8px;
}

.documents-list .document-meta {
    margin-bottom: 0;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    margin: 5% auto;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 27px;
    z-index: -1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.close:hover {
    color: rgba(255, 255, 255, 0.95);
}

.modal-body {
    padding: 0 24px 24px;
}

.download-info {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.download-info i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.download-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.download-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.download-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.download-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.btn-primary:hover {
    /* Remove transform jumping animation */
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 98%;
        padding: 5px 3px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .search-container {
        min-width: unset;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 99%;
        padding: 5px 2px;
    }
    
    .document-card {
        padding: 15px;
        margin: 0 2px;
    }
    
    .document-header {
        flex-direction: column;
        text-align: center;
    }
    
    .document-icon {
        align-self: center;
    }
    
    .download-info {
        flex-direction: column;
        text-align: center;
    }
    
    .documents-container {
        padding: 10px;
    }
    
    .header {
        padding: 12px 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
}
