:root {

    --bg-primary: #07111f;

    --bg-card: rgba(255,255,255,0.06);

    --border-card: rgba(255,255,255,0.1);

    --text-primary: #ffffff;

    --text-secondary: #cbd5e1;

    --text-muted: #94a3b8;

    --blue: #38bdf8;

    --purple: #8b5cf6;

    --red: #ef4444;

    --orange: #f59e0b;

    --green: #22c55e;

    --radius-xl: 24px;

    --radius-lg: 18px;

    --radius-md: 14px;

    --transition: all 0.2s ease;
}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

body {

    font-family: Arial, sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(56, 189, 248, 0.2),
            transparent 30%
        ),

        radial-gradient(
            circle at top right,
            rgba(139, 92, 246, 0.2),
            transparent 30%
        ),

        var(--bg-primary);

    color: var(--text-primary);

    min-height: 100vh;

    padding: 30px;

    overflow-x: hidden;
}

.page {

    max-width: 1500px;

    margin: 0 auto;
}

/*
============================================
NAVBAR
============================================
*/

.navbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 40px;

    background: rgba(255,255,255,0.04);

    border: 1px solid var(--border-card);

    border-radius: var(--radius-xl);

    backdrop-filter: blur(20px);

    margin-bottom: 30px;
}

.navbar-left,
.navbar-right {

    display: flex;

    align-items: center;

    gap: 20px;
}

.navbar a {

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: var(--transition);
}

.navbar a:hover {

    opacity: 0.8;
}

.navbar-logo {

    font-size: 22px;

    font-weight: bold;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

.navbar-user {

    color: var(--text-muted);

    font-size: 14px;
}

/*
============================================
HERO
============================================
*/

.hero {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

    padding: 30px;

    border-radius: var(--radius-xl);

    background: var(--bg-card);

    border: 1px solid var(--border-card);

    backdrop-filter: blur(20px);
}

.hero h1 {

    font-size: 42px;

    margin-bottom: 10px;
}

.hero p {

    color: var(--text-secondary);

    max-width: 700px;

    line-height: 1.6;
}

/*
============================================
BUTTONS
============================================
*/

.add-button {

    border: none;

    padding: 14px 22px;

    border-radius: 999px;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: var(--transition);

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}

.add-button:hover {

    transform: translateY(-2px);

    opacity: 0.95;
}

.action-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 14px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;

    background: rgba(56,189,248,0.15);

    color: #bae6fd;

    border: 1px solid rgba(56,189,248,0.3);

    transition: var(--transition);
}

.action-button:hover {

    transform: translateY(-1px);
}

.edit-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 14px;

    border-radius: 10px;

    background: rgba(59, 130, 246, 0.12);

    border: 1px solid rgba(59, 130, 246, 0.25);

    color: #93C5FD;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    transition: var(--transition);
}

.edit-button:hover {

    background: rgba(59, 130, 246, 0.2);

    transform: translateY(-1px);
}

.delete-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 12px;

    border-radius: 10px;

    background: rgba(239, 68, 68, 0.10);

    border: 1px solid rgba(239, 68, 68, 0.20);

    color: #FCA5A5;

    cursor: pointer;

    font-size: 13px;

    font-weight: 500;

    transition: var(--transition);
}

.delete-button:hover {

    background: rgba(239, 68, 68, 0.18);

    transform: translateY(-1px);
}

/*
============================================
TABS
============================================
*/

.tabs {

    display: flex;

    gap: 12px;

    margin-bottom: 30px;
}

.tab {

    text-decoration: none;

    color: var(--text-secondary);

    padding: 12px 18px;

    border-radius: 999px;

    background: var(--bg-card);

    border: 1px solid var(--border-card);

    font-weight: bold;

    transition: var(--transition);
}

.tab:hover {

    transform: translateY(-1px);
}

.tab.active {

    background: rgba(56, 189, 248, 0.15);

    color: white;

    border-color: rgba(56,189,248,0.3);
}

/*
============================================
KPIS
============================================
*/

.kpis {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 18px;

    margin-bottom: 30px;
}

.kpi {

    background: var(--bg-card);

    border: 1px solid var(--border-card);

    border-radius: 20px;

    padding: 24px;

    transition: var(--transition);
}

.kpi:hover {

    transform: translateY(-2px);
}

.kpi-label {

    color: var(--text-muted);

    font-size: 13px;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.kpi-value {

    font-size: 36px;

    font-weight: bold;
}

/*
============================================
PANELS
============================================
*/

.panel {

    background: var(--bg-card);

    border: 1px solid var(--border-card);

    border-radius: var(--radius-xl);

    margin-bottom: 30px;

    overflow: hidden;

    backdrop-filter: blur(20px);
}

.panel-header {

    padding: 24px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-header h2 {

    margin-bottom: 6px;
}

.panel-header p {

    color: var(--text-muted);
}

/*
============================================
TABLES
============================================
*/

table {

    width: 100%;

    border-collapse: collapse;
}

th,
td {

    padding: 18px;

    text-align: left;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

th {

    font-size: 12px;

    text-transform: uppercase;

    color: var(--text-muted);
}

tbody tr {

    transition: var(--transition);
}

tbody tr:hover {

    background: rgba(255,255,255,0.03);
}

/*
============================================
STATUS
============================================
*/

.status {

    padding: 8px 12px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: bold;

    display: inline-block;
}

.status.red {

    background: rgba(239,68,68,0.15);

    color: #fecaca;
}

.status.orange {

    background: rgba(245,158,11,0.15);

    color: #fde68a;
}

.status.green {

    background: rgba(34,197,94,0.15);

    color: #bbf7d0;
}

/*
============================================
FORMS
============================================
*/

form {

    display: flex;

    flex-direction: column;

    gap: 24px;
}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.form-group label {

    font-size: 14px;

    font-weight: bold;

    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {

    padding: 16px;

    border-radius: var(--radius-md);

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);

    color: white;

    font-size: 15px;

    outline: none;

    transition: var(--transition);
}

.form-group textarea {

    resize: vertical;

    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: rgba(56,189,248,0.5);

    box-shadow:
        0 0 0 3px rgba(56,189,248,0.12);
}

.form-group select option {

    background: #0f172a;

    color: white;
}

/*
============================================
ACTIONS
============================================
*/

.actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

/*
============================================
MODAL
============================================
*/

.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(120, 0, 0, 0.35);

    backdrop-filter: blur(6px);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 9999;
}

.modal-box {

    width: 420px;

    max-width: 90vw;

    background: #111827;

    border: 1px solid rgba(255, 0, 0, 0.2);

    border-radius: var(--radius-lg);

    padding: 30px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5);

    animation: modalAppear 0.2s ease;
}

.modal-box h2 {

    color: white;

    margin-bottom: 15px;
}

.modal-box p {

    color: #D1D5DB;

    margin-bottom: 25px;

    line-height: 1.5;
}

.modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 12px;
}

.modal-cancel {

    padding: 10px 18px;

    border: none;

    border-radius: 10px;

    background: #374151;

    color: white;

    cursor: pointer;

    font-weight: 600;
}

.modal-delete {

    padding: 10px 18px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #DC2626,
        #991B1B
    );

    color: white;

    cursor: pointer;

    font-weight: 600;
}

.error-message {

    margin-bottom: 20px;

    padding: 14px 18px;

    border-radius: 12px;

    background: rgba(239,68,68,0.12);

    border: 1px solid rgba(239,68,68,0.2);

    color: #fecaca;

    font-weight: 500;
}

/*
============================================
ANIMATIONS
============================================
*/

@keyframes modalAppear {

    from {

        opacity: 0;

        transform: scale(0.95);
    }

    to {

        opacity: 1;

        transform: scale(1);
    }
}

/*
============================================
RESPONSIVE
============================================
*/

@media (max-width: 1100px) {

    .kpis {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero {

        flex-direction: column;

        align-items: flex-start;
    }

    .navbar {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }
}

@media (max-width: 700px) {

    body {

        padding: 15px;
    }

    .hero h1 {

        font-size: 30px;
    }

    .kpis {

        grid-template-columns: 1fr;
    }

    table {

        display: block;

        overflow-x: auto;
    }

    .navbar {

        padding: 20px;
    }

    .navbar-left,
    .navbar-right {

        flex-wrap: wrap;
    }
}