/* Modernāks, vienkāršs stils visām lapām */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;
    --danger: #dc2626;
    --bg: #0f172a;
    --card-bg: #0b1120;
    --border-soft: #1e293b;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    padding: 22px 0;
    text-align: center;
    background: linear-gradient(90deg, rgba(15,23,42,0.96), rgba(30,64,175,0.9));
    border-bottom: 1px solid rgba(148,163,184,0.35);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.03em;
}

main {
    padding: 24px;
    display: flex;
    justify-content: center;
}

.page-card {
    width: 100%;
    max-width: 980px;
    background: radial-gradient(circle at top left, rgba(37,99,235,0.1), transparent 55%), var(--card-bg);
    border-radius: 18px;
    padding: 24px 26px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.28);
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.page-title {
    font-size: 20px;
    font-weight: 500;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.search-input {
    min-width: 220px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    padding: 0 12px;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-out;
    background-color: rgba(15,23,42,0.9);
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(37,99,235,0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37,99,235,0.75);
}

.btn-secondary {
    border-color: rgba(148,163,184,0.6);
    background: rgba(15,23,42,0.6);
}

.btn-secondary:hover {
    border-color: rgba(156,163,175,0.9);
    background: rgba(15,23,42,0.9);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: #fee2e2;
    box-shadow: 0 10px 30px rgba(220,38,38,0.6);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(220,38,38,0.8);
}

.table-wrapper {
    margin-top: 10px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: rgba(15,23,42,0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: linear-gradient(90deg, #020617, #0f172a);
}

table th,
table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(30,41,59,0.9);
}

table th {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

table tbody tr:hover {
    background-color: rgba(30,64,175,0.15);
}

.form-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(15,23,42,0.9);
    padding: 24px 24px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.form-row-full {
    grid-column: 1 / -1;
}

.form-wrapper label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-wrapper input,
.form-wrapper select {
    width: 100%;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148,163,184,0.5);
    padding: 0 10px;
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    font-size: 14px;
}

.form-wrapper input:focus,
.form-wrapper select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.profile-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(15,23,42,0.9);
    padding: 22px 22px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.profile-row strong {
    color: var(--text-muted);
}

.profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.profile-edit {
    margin-top: 22px;
    border-top: 1px dashed rgba(148,163,184,0.4);
    padding-top: 18px;
}

.parent-mode {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.parent-mode input {
    margin-right: 4px;
}

.hidden {
    display: none;
}

.filter-select {
    min-width: 150px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    padding: 0 10px;
    font-size: 13px;
}

button {
    font-family: inherit;
}

@media (max-width: 768px) {
    main {
        padding: 16px;
    }

    .page-card {
        padding: 18px 16px 22px;
    }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

