/* Container layout */
body {
    font-family: Arial;
    display: flex;
    margin: 0;
    height: 100vh;
    padding-top:170px;
}
/* HEADER stays visible */
#file-list-header {
    padding: 10px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}
/* Left panel with file list */
#file-list {
    width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ccc;
}
/* Scroll only the images */
#file-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
/* Right panel for preview */
#preview {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* File card style */
.file-card {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    padding-bottom: 5px;
    cursor: pointer;
    border: 1px solid #aaa;
    position: relative; /* needed for delete button positioning */
    margin-bottom: 5px;
}

/* Delete button inside card */
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255,0,0,0.7);
    border: none;
    color: white;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px; /* vertical center X */
    font-size: 12px; /* make X fit nicely */
}

/* Hover effect for delete */
.delete-btn:hover {
    background-color: rgba(255,0,0,1);
}

/* Selected file card highlight */
.file-card.selected {
    outline: 2px solid red;
}

/* Download button */
.btn-download {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: limegreen;
    border-radius: 3px;
    border-color: black;
    border-width: 1px;
    width: 110px;
    height: 50px;
}

.btn-download:hover {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #8cf58c ;
    border-radius: 3px;
    border-color: black;
    border-width: 1px;
    width: 110px;
    height: 50px;
}

/* Preview image */
#preview-img {
    max-width: 80%;
    max-height: 80%;
}

/* ***************************** BELOW INDEX HTML STYLINGS ************************************/
.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white; /* important so it doesn't overlap visually */
    z-index: 1000;
    text-align: end;
    padding: 2px 0;
    box-shadow: 0px -2px 18px #5a5a5a;
}

.logo-container img {
    height: 140px;
}

.upload-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
}

.upload-btn {
    font-size: 1.3rem;
    padding: 15px 40px;
    border-radius: 50px;
}

.preview-box img {
    max-width: 100%;
    max-height: 250px;
    display: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.footer {
    background: #222;
    color: #bbb;
    padding: 12px;
    font-size: 0.9rem;
}
