:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --primary-color: #60a5fa;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --danger-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}

.view {
    display: none;
}

.view.active {
    display: flex;
}

/* Login */
#login-view {
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #0f172a;
    color: white;
}

button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.error-msg {
    color: var(--danger-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

/* Dashboard */
#dashboard-view {
    flex-direction: column;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#logout-btn {
    width: auto;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table-container {
    overflow-x: auto;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
}

td {
    vertical-align: middle;
}

.thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #000;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.5);
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
}

a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Mobile Responsive Table */
@media (max-width: 768px) {

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}