:root {
    --primary: #0F1115;    /* Deep Midnight Black */
    --accent: #D4AF37;     /* Professional Gold */
    --surface: rgba(255, 255, 255, 0.03);
    --text: #E0E0E0;
    --text-muted: #888;
    --error: #cf6679;
    --success: #4caf50;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    background-image: radial-gradient(circle at 50% 0%, #1c2331 0%, #0F1115 70%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

/* Login Screen */
#login-screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    background-image: radial-gradient(circle at 50% 50%, #1c2331 0%, #0F1115 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

#login-screen.hidden {
    display: none !important;
}

.login-container {
    width: 90%;
    max-width: 450px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.app-logo-main {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%; /* Klipper den hvide firkant af, hvis logoet er rundt */
    border: 2px solid var(--accent); /* Tilføjer en tynd guld-ring om logoet */
    padding: 5px;
    background: white; /* Giver en ren baggrund inde i cirklen */
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    transition: transform 0.5s ease;
}

.app-logo-main:hover {
    transform: scale(1.05);
}

.fa-spin-slow {
    animation: fa-spin 12s infinite linear;
}

#login-screen h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 5px;
    margin-bottom: 2.5rem;
}

#login-screen h1 b {
    color: var(--accent);
    font-weight: 800;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
    padding-left: 4px;
}

#login-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.1rem;
    font-size: 1rem;
}

.helper-links-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.helper-link {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.helper-link:hover {
    color: white;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: #BBB;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: #555;
}

.download-link i {
    color: var(--accent);
}

/* Responsive Layout */
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sub-screen {
    flex: 1;
    width: 100%;
    max-width: 1600px; /* Begræns bredden på meget store skærme */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

.card i {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: block;
    color: var(--accent);
    transition: transform 0.3s;
}

.card:hover i { transform: scale(1.1); }

.card span {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #BBB;
}

.card:hover span { color: white; }

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(400px circle at var(--x) var(--y), rgba(212, 175, 55, 0.08), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* Table Styling */
.table-container {
    padding: 1rem 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
}

th, td {
    padding: 1.2rem;
    text-align: left;
}

th {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border: none;
}

td {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
}

td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Forms & Buttons */
input, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    transition: all 0.3s;
}

select option {
    background: #141416;
    color: white;
}

input:focus, select:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

button, .btn-small {
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

button:hover, .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #141416;
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal h3 {
    margin-top: 0;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Statistics */
.stat-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.stat-card.primary { border-top: 4px solid var(--accent); }
.stat-card.secondary { border-top: 4px solid var(--success); }

.stats-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}

.simple-chart {
    height: 150px;
    display: flex;
    align-items: bottom;
    justify-content: space-around;
    gap: 10px;
}
.chart-bar-container { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.chart-bar { width: 100%; background: var(--secondary); border-radius: 4px 4px 0 0; min-height: 5px; }
.chart-label { font-size: 0.7rem; color: #888; }

.breakdown-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #444; font-size: 0.9rem; }
.breakdown-row:last-child { border: none; }

.top-product-item { display: flex; justify-content: space-between; padding: 0.8rem; background: #383838; margin-bottom: 0.5rem; border-radius: 6px; }
.top-product-item .name { font-weight: bold; }
.top-product-item .count { color: var(--secondary); }

.stats-select { background: var(--surface); color: white; padding: 0.5rem; border: 1px solid #555; border-radius: 4px; }

/* Booking Calendar */
.calendar-container { padding: 1rem 2rem; }

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-weekday-header {
    text-align: center;
    font-weight: 800;
    padding: 10px;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calendar-day-cell {
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 120px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-day-cell:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.calendar-day-cell.other-month {
    opacity: 0.2;
    cursor: default;
}

.calendar-day-cell.today {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.calendar-day-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: white;
}

.day-booking-indicator {
    font-size: 0.7rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.day-booking-indicator.is-avail {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.2);
}

/* Daily Slot List */
.time-slots-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-item {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 5px solid var(--accent);
}

.booking-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.booking-item.is-avail {
    border-left-color: #4caf50;
}

/* Todo List */
.todo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.todo-item .task-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.todo-item button {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.shelf-badge {
    background: var(--accent);
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.shelf-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.shelf-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.shelf-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent);
}

.shelf-card p {
    margin: 10px 0 0;
    color: #888;
}
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #333;
    margin-top: auto;
}
