* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #050509;
    color: #e5e5f0;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #1a1a2e, #050509);
    padding: 24px 18px;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff4b5c, #ff9a62);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #050509;
    margin-right: 10px;
}

.logo-text span {
    display: block;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
}

.logo-text small {
    display: block;
    font-size: 11px;
    color: #9fa3c7;
}

.user-block {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 20px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 11px;
    color: #9fa3c7;
    margin-top: 2px;
}

.nav {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.nav a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: #c3c6ea;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 3px;
    transition: background 0.18s, color 0.18s, transform 0.05s;
}

.nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    transform: translateX(1px);
}

.nav a.active {
    background: linear-gradient(135deg, #ff4b5c, #ff9a62);
    color: #050509;
    font-weight: 600;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 26px;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.main-header h1 {
    font-size: 22px;
    font-weight: 650;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: #c1c4e0;
    background: rgba(255,255,255,0.03);
}

.main-content {
    flex: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.card {
    background: radial-gradient(circle at top left, #161625, #070712);
    border-radius: 18px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.card h2 {
    font-size: 14px;
    margin-bottom: 6px;
}

.card .metric {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.card .sub {
    font-size: 12px;
    color: #8d90be;
}

.card-wide {
    grid-column: 1 / -1;
}

.table-wrapper {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #070712;
    font-size: 13px;
}

thead {
    background: rgba(255,255,255,0.04);
}

th, td {
    padding: 8px 10px;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.01);
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

label {
    font-size: 12px;
    color: #a3a6d5;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 7px 9px;
    color: #e5e5f0;
    font-size: 13px;
    width: 100%;
}

button,
.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4b5c, #ff9a62);
    color: #050509;
    text-decoration: none;
    transition: transform 0.08s, box-shadow 0.1s;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.55);
}

.alert {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    background: rgba(255,61,87,0.13);
    border: 1px solid rgba(255,61,87,0.6);
    color: #ffd7dc;
}

.alert-success {
    background: rgba(67,201,154,0.13);
    border: 1px solid rgba(67,201,154,0.6);
    color: #d4ffe9;
}

.main-footer {
    margin-top: 18px;
    font-size: 11px;
    color: #777aa5;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
}
