* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #07090d;
    color: #f2f4f8;
    font-family: Inter, Arial, sans-serif;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

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

.sidebar {
    width: 260px;
    background: #0b0f17;
    border-right: 1px solid #1f2937;
    padding: 24px;
}

.brand {
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
}

.brand.big {
    font-size: 24px;
    margin-bottom: 10px;
}

.muted {
    color: #7d8595;
    font-size: 14px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

nav a {
    padding: 12px 14px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    color: #e5e7eb;
}

nav a:hover {
    background: #182033;
}

.content {
    flex: 1;
    padding: 32px;
}

h1, h2 {
    margin-top: 0;
}

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

.card, .panel {
    background: #0f172a;
    border: 1px solid #263244;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.label {
    color: #94a3b8;
    font-size: 14px;
}

.value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #1e293b;
    text-align: left;
    font-size: 14px;
}

th {
    background: #111827;
    color: #cbd5e1;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #020617;
    color: #f8fafc;
}

textarea {
    min-height: 90px;
}

button, .btn {
    display: inline-block;
    border: 0;
    background: #2563eb;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

button:hover, .btn:hover {
    background: #1d4ed8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
}

.inline {
    display: flex;
    gap: 8px;
}

.login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.login-card {
    width: 390px;
    background: #0f172a;
    border: 1px solid #263244;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

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

.alert {
    background: #7f1d1d;
    border: 1px solid #ef4444;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.state {
    margin-top: 15px;
    padding: 12px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 12px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.project-card {
    background: #020617;
    border: 1px solid #263244;
    border-radius: 18px;
    padding: 16px;
}

.project-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.project-phone {
    color: #8ab4ff;
    font-weight: 700;
    margin-bottom: 8px;
}

.state.ok {
    border-color: #14532d;
    background: #052e16;
    color: #dcfce7;
}

.state.bad {
    border-color: #7f1d1d;
    background: #450a0a;
    color: #fee2e2;
}

button.danger, .danger {
    background: #991b1b !important;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-row button {
    background: #1e40af;
}

.status-row button:nth-child(2) {
    background: #475569;
}

.status-row button:nth-child(3),
.status-row button:nth-child(4),
.status-row button:nth-child(5) {
    background: #92400e;
}

textarea {
    grid-column: 1 / -1;
}


audio {
    width: 260px;
}

.sidebar {
    overflow-y: auto;
}

table input, table select {
    min-width: 120px;
}

