* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.center-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card h1 {
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
}
label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #94a3b8;
}
input[type=text], input[type=password] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
}
button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
button:hover { background: #1d4ed8; }
.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* dashboard */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
.topbar a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 14px;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}
.profile {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.profile h2 { margin: 0 0 4px; }
.profile p { margin: 2px 0; color: #94a3b8; font-size: 14px; }
.groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.group-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 16px 18px;
    border-left: 4px solid #2563eb;
}
.group-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #93c5fd;
}
.acc-row {
    font-size: 13px;
    padding: 6px 0;
    border-top: 1px solid #334155;
}
.acc-row:first-of-type { border-top: none; }
.acc-row .call { font-weight: 600; }
.acc-row .dmr { color: #94a3b8; }

/* admin */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-nav a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
}
.admin-nav a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
}
.btn:hover { background: #1d4ed8; }
.alert-success {
    background: #14532d;
    color: #bbf7d0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
input[type=file] {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #e2e8f0;
    font-size: 13px;
}
.table-wrap {
    overflow-x: auto;
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #334155;
    vertical-align: top;
}
.data-table th {
    color: #93c5fd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .badge {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    padding: 3px 0;
}
.data-table .badge .call { color: #e2e8f0; font-weight: 600; }
.data-table code {
    background: #0f172a;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0 32px;
    font-size: 13px;
    color: #94a3b8;
}
.pagination a {
    color: #93c5fd;
    text-decoration: none;
}
.jump-page {
    display: flex;
    align-items: center;
    gap: 6px;
}
.jump-page label {
    margin: 0;
    color: #94a3b8;
}
.jump-page input[type=number] {
    width: 64px;
    padding: 6px 8px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
}
.jump-page button {
    width: auto;
    padding: 6px 12px;
    font-size: 13px;
}
