﻿:root {
    --bg-soft: #f6f7fb;
    --card-bg: rgba(255,255,255,0.85);
    --border-soft: #e9ecef;
    /*--brand-1: #0d6efd;
    --brand-2: #6f42c1;*/
    --brand-1: #d1131a;
    --brand-2: #ff414196;
    --muted: #6c757d;
    --success-bg: #d1e7dd;
    --success-text: #0f5132;
    --danger-bg: #f8d7da;
    --danger-text: #842029;
    --secondary-bg: #e2e3e5;
    --secondary-text: #41464b;
    --warning-bg: #fff3cd;
    --warning-text: #664d03;
}

[data-theme="dark"] {
    --bg-soft: #0b0e12;
    --card-bg: rgba(26,28,32,0.75);
    --border-soft: #2b3035;
    --text: #e9ecef;
    --muted: #adb5bd;
}

/* Page background */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% -20%, #e8f0ff 0%, transparent 35%), radial-gradient(800px 600px at 120% 20%, #f3e9ff 0%, transparent 30%), var(--bg-soft);
}

[data-theme="dark"] body {
    background: radial-gradient(1200px 600px at 20% -20%, #10131a 0%, transparent 35%), radial-gradient(800px 600px at 120% 20%, #14121a 0%, transparent 30%), var(--bg-soft);
}

/* Simple container */
/*.container {
    max-width: 800px;
    min-width: 0px;
    margin: 0 auto;
    padding: 1.5rem;
}*/
/* Default for extra small screens (<576px) */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    .container {
        max-width: 575px;
    }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    .container {
        max-width: 765px;
    }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 936px;
    }
}

/* XXL devices (≥1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1088px;
    }
}

/* Header */
.page-header {
    background: linear-gradient(135deg, var(--card-bg));
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 10px 30px rgba(13,110,253,0.25);
}

    .page-header h1 {
        margin: 0;
        font-size: 1.35rem;
    }

.header-actions {
    display: flex;
    gap: .5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: .5rem;
    border: 1px solid rgb(1 251 52 / 60%);
    background: #29c105;
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    font-weight: 600;
    font-size: .9rem;
}

    .btn:hover {
        background: rgba(255,255,255,.3);
        color: #29c105;
    }

    .btn:active {
        transform: scale(0.98);
    }


.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: .5rem;
    border: 1px solid rgb(0 0 0 / 60%);
    background: #6c757d;
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

    .btn-reset:hover {
        background: rgba(255,255,255,.3);
        color: var(--secondary-text);
    }

    .btn-reset:active {
        transform: scale(0.98);
    }

/* Generic card with glass effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: saturate(140%) blur(6px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 1rem;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    padding: 1rem;
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
}

.chip-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.chip-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.chip-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.chip-secondary {
    background: var(--secondary-bg);
    color: var(--secondary-text);
}

/* Label-Value rows */
.kv-row {
    display: flex;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px dashed var(--border-soft);
}

    .kv-row:last-child {
        border-bottom: 0;
    }

.kv-label {
    flex: 1 1 25%;
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    word-break: break-word;
}

.kv-value {
    flex: 1 1 50%;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

    .kv-value .badge {
        white-space: normal;
    }

/* Remarks nice block */
.remarks .kv-value {
    text-align: left;
}

.note {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding: .6rem .75rem;
    border-radius: .5rem;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    max-width: 100%;
    word-break: break-word;
}

[data-theme="dark"] .note {
    background: #3b341f;
    border-color: #5c5127;
    color: #e9d7a7;
}

/* Simple grid (no Bootstrap) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    padding: 0 .5rem;
}

.col-12 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }

    .col-md-3 {
        width: 25%;
    }
}
/*@media (min-width: 576px) {
    @media (min-width: 576px) {
        .col-sm-1 {flex: 0 0 auto;width: 8.3333%;}
        .col-sm-2 {flex: 0 0 auto;width: 16.6667%;}
        .col-sm-3 {flex: 0 0 auto;width: 25%;}
        .col-sm-4 {flex: 0 0 auto;width: 33.3333%;}
        .col-sm-5 {flex: 0 0 auto;width: 41.6667%;}
        .col-sm-6 {flex: 0 0 auto;width: 50%;}
        .col-sm-7 {flex: 0 0 auto;width: 58.3333%;}
        .col-sm-8 {flex: 0 0 auto;width: 66.6667%;}
        .col-sm-9 {flex: 0 0 auto;width: 75%;}
        .col-sm-10 {flex: 0 0 auto;width: 83.3333%;}
        .col-sm-11 {flex: 0 0 auto;width: 91.6667%;}
        .col-sm-12 {flex: 0 0 auto;width: 100%;}
    }
}*/

/* Section titles */
.section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.muted {
    color: var(--muted);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 1rem 0;
}

/* Print-friendly */
@media print {
    .header-actions {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .page-header {
        color: #000;
        background: #fff;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .glass-card {
        backdrop-filter: none;
        box-shadow: none;
        border-color: #dee2e6;
    }
}

/* Header with logo */
.page-header {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    border-radius: var(--header-radius);
    padding: 1rem 1rem;
    box-shadow: 0 10px 30px rgba(253, 13, 13,0.25);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 220px;
}

.brand-logo {
    height: var(--logo-height);
    max-height: var(--logo-height);
    width: auto;
    display: inline-block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}
