*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,sans-serif;
}

body{
    background:whitesmoke;
    color:#1f2937;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:24px;
}

.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.logo h1{
    font-size:2rem;
    font-weight:700;
    color:#16a34a;
}

.logo p{
    margin-top:4px;
    color:#6b7280;
}

.upload-btn{
    border:none;
    outline:none;
    cursor:pointer;
    padding:12px 20px;
    border-radius:12px;
    background:#22c55e;
    color:#fff;
    font-weight:600;
    transition:.3s;
}

.upload-btn:hover{
    background:#16a34a;
}

.stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-bottom:24px;
}

.card{
    background:#fff;
    border-radius:18px;
    padding:24px;
    box-shadow:0 4px 20px rgba(0,0,0,.05);
}

.card h3{
    font-size:.95rem;
    color:#6b7280;
    margin-bottom:10px;
}

.card span{
    font-size:1.5rem;
    font-weight:700;
}

.storage-section{
    background:#fff;
    border-radius:18px;
    padding:24px;
    box-shadow:0 4px 20px rgba(0,0,0,.05);
    margin-bottom:24px;
}

.storage-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    font-weight:600;
}

.progress-bar{
    width:100%;
    height:14px;
    border-radius:999px;
    background:#e5e7eb;
    overflow:hidden;
}

.progress-fill{
    width:0%;
    height:100%;
    border-radius:999px;
    background:#22c55e;
    transition:.4s;
}

.search-section{
    margin-bottom:24px;
}

.search-section input{
    width:100%;
    border:none;
    outline:none;
    background:#fff;
    border-radius:16px;
    padding:14px 18px;
    font-size:15px;
    box-shadow:0 4px 20px rgba(0,0,0,.05);
}

.table-section{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 4px 20px rgba(0,0,0,.05);
}

table{
    width:100%;
    border-collapse:collapse;
}

thead{
    background:#22c55e;
    color:#fff;
}

th{
    padding:16px;
    text-align:left;
}

td{
    padding:16px;
    border-bottom:1px solid #f1f5f9;
}

tr:last-child td{
    border-bottom:none;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:1000;
}

.modal-content{
    width:100%;
    max-width:450px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
}

.modal-header{
    padding:20px;
    border-bottom:1px solid #e5e7eb;
}

.modal-body{
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.modal-body label{
    font-size:.9rem;
    font-weight:600;
}

.modal-body input{
    width:100%;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:12px;
    outline:none;
}

.modal-footer{
    padding:20px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

.modal-footer button{
    border:none;
    cursor:pointer;
    padding:12px 18px;
    border-radius:12px;
    font-weight:600;
}

#closeModal{
    background:#e5e7eb;
}

#submitUpload{
    background:#22c55e;
    color:#fff;
}

.loading-overlay{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.8);
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    z-index:2000;
}

.loader{
    width:50px;
    height:50px;
    border:5px solid #d1d5db;
    border-top:5px solid #22c55e;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@media(max-width:768px){

    .header{
        flex-direction:column;
        align-items:flex-start;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .table-section{
        overflow-x:auto;
    }

    table{
        min-width:700px;
    }

}
.action-cell{
    display:flex;
    align-items:center;
    gap:10px;
}

.download-btn{
    text-decoration:none;
    background:#22c55e;
    color:#fff;
    padding:8px 14px;
    border-radius:10px;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.download-btn:hover{
    background:#16a34a;
}

.delete-btn{
    border:none;
    cursor:pointer;
    background:#ef4444;
    color:#fff;
    padding:8px 14px;
    border-radius:10px;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.delete-btn:hover{
    background:#dc2626;
}