/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

:root {
    --bg: #f6f1f1;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;

    --primary: #e07a7a;
    --primary-dark: #c85d5d;

    --border: rgba(0,0,0,0.08);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

body {
    background: linear-gradient(180deg, #faf7f7, #f3eded);
    color: var(--text);
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== HEADER ===== */
header {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

/* ===== CARD ===== */
.card {
    background: var(--panel);
    padding: 20px;
    margin: 15px 0;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}


/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: #22c55e; }
.toast.error { background: #ef4444; }

/* ===== BUTTONS ===== */
button,
.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s ease;
    box-shadow: 0 6px 14px rgba(224,122,122,0.25);
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
}

/* ===== INPUT ===== */
input[type="file"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

/* ===== FILE LIST ===== */
.file-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    position: relative;
}

.preview {
    width: 80px;
    height: 80px;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.file-info {
    flex: 1;
}

.filename {
    margin-bottom: 6px;
}

.actions {
    display: flex;
    gap: 8px;
}

/* ===== MOBILE MENU ===== */
.mobile-actions {
    display: none;
    position: relative;
}

.dots {
    font-size: 26px;
    cursor: pointer;
    padding: 6px 10px;
    user-select: none;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 180px;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px;
    color: var(--text);
    text-decoration: none;
}

.dropdown a:hover {
    background: rgba(224,122,122,0.1);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #0f172a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    color: white;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ===== LOGIN ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #faf7f7, #f3eded);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 18px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e07a7a, #c85d5d);
    color: white;
    font-weight: 600;
}

/* ===== RENAMING ===== */
.rename-card {
    max-width: 420px;
    margin: 0 auto;
}

.rename-card label {
    display: block;
    margin: 8px 0 6px;
    font-size: 14px;
    color: var(--muted);
}

.error-box {
    background: rgba(255,0,0,0.08);
    color: #b00020;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .file-card {
        flex-direction: column;
        align-items: stretch;
    }

    .thumb {
        height: 180px;
    }

    .preview {
        width: 100%;
        height: auto;
    }

    .actions {
        display: none;
    }

    .mobile-actions {
        display: block;
        margin-top: 10px;
    }

    .btn {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
        border-radius: 16px;
    }

    .card {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .card p {
        margin-bottom: 6px;
    }
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.home-btn {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(224,122,122,0.12);
}

.home-btn:hover {
    background: rgba(224,122,122,0.2);
}
.users-page .actions {
    display: flex !important;
}
@media (max-width: 768px) {

    .users-page .actions {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
    }

    .users-page .btn {
        width: auto;
        min-height: unset;
        font-size: 14px;
        padding: 8px 12px;
    }

}
