﻿:root {
    --primary: #bb86fc;
    --primary-dark: #9a67ea;
    --secondary: #03dac6;
    --background: #121212;
    --surface: #1e1e1e;
    --error: #cf6679;
    --text: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(3, 218, 198, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(187, 134, 252, 0.18), transparent 35%),
        linear-gradient(135deg, #10131f 0%, #121212 55%, #1a1026 100%);
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.user-chip small {
    opacity: 0.75;
    text-transform: uppercase;
}

.flash-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash-message {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(76, 175, 80, 0.16);
    border-color: rgba(76, 175, 80, 0.32);
}

.flash-error {
    background: rgba(207, 102, 121, 0.16);
    border-color: rgba(207, 102, 121, 0.32);
}

.flash-info {
    background: rgba(33, 150, 243, 0.16);
    border-color: rgba(33, 150, 243, 0.32);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #121212;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-add {
    background-color: #4caf50;
    color: white;
}

.btn-theme {
    background-color: #2196f3;
    color: white;
}

.btn-report {
    background-color: #7e57c2;
    color: white;
}

.btn-edit {
    background-color: #ff9800;
    color: white;
}

.btn-order {
    background-color: #455a64;
    color: white;
}

.btn-delete {
    background-color: var(--error);
    color: white;
}

.btn-back {
    background-color: #616161;
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    min-width: 36px;
    justify-content: center;
}

.btn-icon:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.card {
    background-color: rgba(30, 30, 30, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 15px;
    background-color: rgba(187, 134, 252, 0.1);
    border-bottom: 1px solid #333;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table th {
    background-color: rgba(187, 134, 252, 0.2);
    color: var(--primary);
}

.styled-table tr {
    border-bottom: 1px solid #333;
}

.styled-table tr:last-child {
    border-bottom: none;
}

.styled-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.styled-table .actions {
    display: flex;
    gap: 5px;
}

.success {
    color: #4caf50;
}

.danger {
    color: var(--error);
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: rgba(30, 30, 30, 0.96);
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: #2d2d2d;
    color: #fff;
    box-sizing: border-box;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.checkbox input {
    width: auto;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-panel {
    background: rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.theme-panel.hidden {
    display: none;
}

.theme-panel-title {
    margin: 0 0 12px;
    color: var(--primary);
    font-weight: 600;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background-color: rgba(30, 30, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.summary-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

.summary-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(224, 224, 224, 0.72);
    font-size: 0.95rem;
}

.summary-card-highlight {
    border-color: rgba(126, 87, 194, 0.45);
    box-shadow: 0 10px 28px rgba(126, 87, 194, 0.18);
}

.ticket-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(224, 224, 224, 0.78);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ticket-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 87, 194, 0.55);
}

.ticket-toggle.active {
    background: rgba(126, 87, 194, 0.22);
    color: #fff;
    border-color: rgba(126, 87, 194, 0.85);
}

.report-table tr.is-selected {
    background-color: rgba(126, 87, 194, 0.12);
}

.report-table td:last-child,
.report-table th:last-child,
.report-table td:nth-child(2),
.report-table th:nth-child(2),
.report-table td:nth-child(3),
.report-table th:nth-child(3),
.report-table td:first-child,
.report-table th:first-child {
    text-align: center;
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-option {
    min-width: 120px;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-option:hover {
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: rgba(255, 255, 255, 0.9);
}

.theme-option.aurora {
    background: linear-gradient(135deg, #10203f, #1f4b99, #30c5a1);
}

.theme-option.sunset {
    background: linear-gradient(135deg, #40100b, #c5521d, #f2b950);
}

.theme-option.ocean {
    background: linear-gradient(135deg, #031b34, #0c5c86, #53b9c7);
}

.theme-option.forest {
    background: linear-gradient(135deg, #081a12, #24553c, #7cb342);
}

body.theme-aurora {
    background:
        radial-gradient(circle at top left, rgba(48, 197, 161, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(111, 158, 255, 0.22), transparent 32%),
        linear-gradient(135deg, #0a1228 0%, #101a35 45%, #173149 100%);
}

body.theme-sunset {
    background:
        radial-gradient(circle at top left, rgba(255, 189, 89, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(232, 104, 55, 0.22), transparent 32%),
        linear-gradient(135deg, #250b08 0%, #5a1f12 48%, #8f3d20 100%);
}

body.theme-ocean {
    background:
        radial-gradient(circle at top left, rgba(83, 185, 199, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(32, 107, 187, 0.2), transparent 32%),
        linear-gradient(135deg, #031322 0%, #08304c 48%, #0b4d66 100%);
}

body.theme-forest {
    background:
        radial-gradient(circle at top left, rgba(124, 179, 66, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(47, 125, 79, 0.22), transparent 32%),
        linear-gradient(135deg, #07140d 0%, #11281b 48%, #1d3d28 100%);
}

.login-page {
    padding: 0;
    display: grid;
    place-items: center;
}

.login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    width: min(100%, 440px);
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-brand {
    margin-bottom: 24px;
}

.login-brand h1 {
    margin: 12px 0 8px;
}

.login-brand p {
    margin: 0;
    color: rgba(224, 224, 224, 0.76);
}

.login-icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.35), rgba(3, 218, 198, 0.24));
    font-size: 1.4rem;
}

.login-form {
    display: grid;
    gap: 12px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-options {
        flex-direction: column;
    }

    .theme-option {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
