body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #60a5fa;
}

.tier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 60px;
}

.tier-row {
    display: flex;
    align-items: center;
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tier-label {
    width: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.tier-content {
    flex-grow: 1;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 76px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-color: #334155;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Tier-specific colors */
.tier-s .tier-label { background-color: #818cf8; }
.tier-a .tier-label { background-color: #60a5fa; }
.tier-b .tier-label { background-color: #5eead4; }
.tier-c .tier-label { background-color: #86efac; }
.tier-d .tier-label { background-color: #fde047; }

.image-grid-section {
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.image-grid-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #93c5fd;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.grid-image {
    width: 100%;
    height: 200px;
    background-color: #334155;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.gi-delete-selected{
    border: 3px solid #e53e3e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modalMediaContainer {
    max-width: 90vw;
    max-height: 75vh;
}

#modalMediaContainer img,
#modalMediaContainer video {
    max-width: 800px;
    max-height: 600px;
    min-width: 400px;
    min-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    background-color: #000;
}

@media (max-width: 768px) {
    #modalMediaContainer img,
    #modalMediaContainer video {
        min-width: 300px;
        min-height: 200px;
    }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(30, 41, 59, 0.9);
}

.prev-btn { left: -80px; }
.next-btn { right: -80px; }

.tier-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.tier-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.tier-btn:hover {
    transform: scale(1.1);
}

.tier-s { background-color: #818cf8; }
.tier-a { background-color: #60a5fa; }
.tier-b { background-color: #5eead4; }
.tier-c { background-color: #86efac; }
.tier-d { background-color: #fde047; color: #1e293b; }
.tier-l {
    color: #1e293b;
    font-size: 1rem;
    background-color: #60a5fa;
}

@media (max-width: 768px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .nav-btn { width: 40px; height: 40px; font-size: 2rem; }
}

.large-button {
    margin-bottom: 20px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #60a5fa;
    color: #0f172a;
}




/* dashboard page styles */

.setup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setup-actions {
    margin: 20px 0 40px;
}

.your-lists-title {
    margin-bottom: 20px;
}

.lists-panel {
    width: 100%;
    max-width: 800px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #888c92;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background-color: #0f172a;
}

.list-row:last-child {
    margin-bottom: 0;
}

.list-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.list-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    background-color: #60a5fa;
    color: #0f172a;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.list-btn.danger {
    background-color: #f87171;
}

.list-btn.left {
    margin-right: auto;
}




/* Form Modal Styles */

.form-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.form-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 1rem;
    background-color: #1e293b;
    border: 2px solid #334155;
}

.form-modal-content input{
    width: 80%;
    margin: auto;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: #e2e8f0;
}

.form-modal-content form{
    /* margin-top: 20px; */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-modal-content label{
    display: block;
    margin-left: 30px;
    font-weight: bold;
}

.form-modal-content form button{
    width: 200px;
    margin: auto;
}

#filesInput::file-selector-button{
    
    padding: 5px;
    font-size: .8rem;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #60a5fa;
    color: #0f172a;
}

.error {
    color: #e53e3e;
    border: 1px solid #e53e3e;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-info-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;       /* helps vertical alignment */
}

.button-sub-container {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 12px;                 /*space between buttons*/
    /* justify-content: flex-start; left-align most buttons */
}

#dashboardBtn {
    margin-left: auto;         /* ← magic line – pushes it all the way right */
}

#editModeTxt{
    margin-top: 0;
    margin-bottom: 20px;
    padding: 10px 16px;
    font-size: 1rem;
    width: 40%;
}

#deleteSelectedFilesBtn{
    background-color: #e53e3e;
    color: white;
}

#exitDeleteModewBtn{
    /* margin-left: auto; */
    background-color: #475569;   /* slate-ish neutral */
    color: #e2e8f0;
}


/* New container for cancel + delete */
.delete-mode-actions {
    display: flex;
    gap: 12px;                 /* space between cancel and delete */
    margin-left: auto;         /* ← pushes the group to the far right */
}

.delete-mode-actions .large-button {
    padding: 10px 20px;        /* bit more horizontal padding if desired */
}