﻿:root {
    --bg: #0f0b16;
    --card: #161124;
    --accent1: #7c3aed;
    --accent2: #ff5da2;
    --glass: rgba(255,255,255,0.04);
    --muted: #bdb6cf;
    --success: #22c55e;
    --danger: #ff6b6b;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(12,8,20,0.7);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.12), 
    transparent), radial-gradient(800px 400px at 90% 90%, rgba(255,93,162,0.08), transparent), var(--bg);
    color: #f5f3ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 24px;
}

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    min-height: 80vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 6px 18px rgba(124,58,237,0.25);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px
}

    .menu a {
        text-decoration: none;
        color: var(--muted);
        padding: 10px;
        border-radius: 10px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

        .menu a:hover {
            background: rgba(124,58,237,0.1);
            color: white;
        }

.main {
    min-height: 80vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.card {
    background: rgba(255,255,255,0.04);
    padding: 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    min-width: 160px;
    flex: 1;
}

    .card h3 {
        margin: 0;
        font-size: 13px;
        color: var(--muted)
    }

    .card p {
        margin: 8px 0 0;
        font-size: 20px;
        font-weight: 700;
        color: white
    }

.cta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #7c3aed; 
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(124,58,237,0.25);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .table thead tr {
        background: rgba(124,58,237,0.15);
    }

    .table th, .table td {
        padding: 12px 14px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        font-size: 14px
    }

    .table tbody tr:hover {
        background: rgba(124,58,237,0.05);
    }

.form {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
}

.input {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px
}

    .input label {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 6px
    }

    .input input, .input select {
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.04);
        background: transparent;
        color: white;
        outline: none
    }

.actions {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

    .btn.primary {
        background: #7c3aed;
        color: white
    }

    .btn.ghost {
        background: transparent;
        border: 1px solid rgba(255,255,255,0.04);
        color: var(--muted)
    }

    .btn.danger {
        background: #ff4d6d;
        color: white
    }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 12px;
    margin-top: 12px
}

.detail {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.02);
}

.small {
    font-size: 13px;
    color: var(--muted)
}

@media(max-width:900px) {
    .app {
        grid-template-columns: 1fr;
        padding: 12px
    }

    .sidebar {
        order: 2
    }

    .main {
        order: 1
    }

    .cards {
        flex-direction: column
    }
}
.cta.back {
    background: #ff4d6d;
    box-shadow: 0 8px 20px rgba(255,77,109,0.3);
}

    .cta.back:hover {
        background: #e63950;
    }

.cta.logout {
    background: var(--danger); 
    box-shadow: 0 8px 20px rgba(255,77,109,0.35);
}

    .cta.logout:hover {
        background: #e04355;
    }
