/* =========================
   GLOBAL RESET & BASE
========================= */

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* VIENĪGAIS GLOBĀLAIS BACKGROUND */
body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #1e3a8a, #020617);
    background-attachment: fixed;
    color: #e5e7eb;
}

/* page-bg vairs nekontrolē fonu */
.page-bg {
    background: transparent;
}

/* noņemam vecos bootstrap paneļus */
.panel,
.panel-default,
.panel-info,
.panel-body,
.panel-heading {
    background: #16131c94 !important;
    border: none !important;
}

/* =========================
   AUTH (login / register)
========================= */

.page-auth {
    min-height: 100vh;
    background: linear-gradient(135deg, #4e73df, #1cc88a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    background: #ffffff;
    color: #111827;
    padding: 30px;
    border-radius: 6px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.auth-box h3 {
    text-align: center;
    margin-bottom: 25px;
}

/* =========================
   LAYOUT
========================= */

.container {
    background: transparent;
}

.content-box {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Navbar */
.custom-navbar {
    border-radius: 0;
    margin-bottom: 0;
}

/* =========================
   TABLES – DARK DASHBOARD
========================= */

.table-dark-list {
    background: transparent;
    color: #e5e7eb;
    margin-bottom: 0;
}

.table-dark-list thead th {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #c7d2fe;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.table-dark-list tbody tr {
    transition: background .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.table-dark-list tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.03);
}

.table-dark-list tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.06);
}

.table-dark-list tbody tr:hover {
    background: rgba(99,102,241,0.28);
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.5);
}

.table-dark-list tbody tr:hover td {
    color: #ffffff;
}

.table-dark-list td {
    border-top: none;
    vertical-align: middle;
}

.table-dark-list strong {
    color: #ffffff;
}

.table-dark-list .text-muted {
    color: #94a3b8 !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .auth-box {
        padding: 20px;
    }

    .custom-navbar {
        padding: 10px;
    }

    .table td {
        font-size: 14px;
    }

    th:nth-child(4),
    td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {

    .auth-box {
        padding: 15px;
    }

    .table td {
        font-size: 12px;
    }

    .btn,
    .form-control {
        padding: 12px;
        font-size: 14px;
    }
}
/* =========================
   FORCE DARK TABLE OVERRIDE
========================= */

.table-dark-list,
.table-dark-list thead,
.table-dark-list tbody,
.table-dark-list tr,
.table-dark-list th,
.table-dark-list td {
    background: transparent !important;
    color: #e5e7eb !important;
}

.table-dark-list thead th {
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    color: #c7d2fe !important;
}

.table-dark-list tbody tr {
    background: rgba(255,255,255,0.03) !important;
}

.table-dark-list tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.06) !important;
}

.table-dark-list tbody tr:hover {
    background: rgba(99,102,241,0.35) !important;
}

.table-dark-list td {
    border-top: none !important;
}

.table-dark-list strong {
    color: #ffffff !important;
}

.table-dark-list .text-muted {
    color: #94a3b8 !important;
}


:root{
    --bg:#0b1220;
    --card:#0f172a;
    --border:#1e293b;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --accent:#22c55e;
    --warn:#f59e0b;
    --danger:#ef4444;
}

body.page-bg{
    background: radial-gradient(circle at top left,#1e3a8a,#020617);
    color:var(--text);
    font-family: system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}


.card{
    background:rgba(15,23,42,.92);
    border:1px solid var(--border);
    border-radius:16px;
    padding:20px;
    margin-bottom:24px;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

.card h3{
    margin-top:0;
    font-size:18px;
    font-weight:600;
}

.form-control{
    background:#020617;
    border:1px solid var(--border);
    color:var(--text);
    border-radius:10px;
}

.form-control:focus{
    border-color:#38bdf8;
    box-shadow:0 0 0 3px rgba(56,189,248,.2);
}

label{color:var(--muted);font-weight:500}

.btn{
    border-radius:10px;
    border:none;
    font-weight:500;
}

.btn-success{background:var(--accent)}
.btn-warning{background:var(--warn);color:#000}
.btn-danger{background:var(--danger)}
.btn-secondary{background:#1e293b;color:#e5e7eb}

hr{border-color:#1e293b}

/* TIMELINE */
.timeline{list-style:none;padding:0;margin:0}
.timeline li{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:16px;
    margin-bottom:16px;
}
.timeline time{
    font-size:12px;
    color:var(--muted);
    text-align:right;
}
.timeline-card{
    background:#020617;
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px 14px;
}
.timeline-card strong{display:block;margin-bottom:4px}

/* DANGER */
.danger{
    background:rgba(239,68,68,.08);
    border:1px solid rgba(239,68,68,.4);
}
.image-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:12px;
}

.image-grid a{
    display:block;
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--border);
}

.image-grid img{
    width:100%;
    height:120px;
    object-fit:cover;
    transition:.2s;
}

.image-grid img:hover{
    transform:scale(1.05);
}

.upload-box{
    border:2px dashed var(--border);
    border-radius:14px;
    padding:16px;
    text-align:center;
    color:var(--muted);
}
.alphabet-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:6px;
}

@media (max-width:768px){
    body .container{
        max-width:100% !important;
        padding-left:4px !important;
        padding-right:4px !important;
    }
}
.readonly-field {
    background-color: #f0f0f0;  /* Pelēka krāsa */
    pointer-events: none;        /* Neļauj klikšķināt */
    opacity: 0.6;                /* Padara to daļēji caurspīdīgu */
}