/* Zynaptec License Server — brand stylesheet.
 *
 * Sjednoceno s GPU Renderer helper UI (ModernUI namespace) +
 * updater Brand:: namespace.  Cyan #0EA5C7 accent, Segoe UI font,
 * light surface tones, Fluent 2 rounded corners.
 */

:root {
    --z-accent:        #0EA5C7;
    --z-accent-hover:  #22D3EE;
    --z-accent-press:  #0284A8;
    --z-bg:            #F3F3F3;
    --z-surface:       #FFFFFF;
    --z-surface-hi:    #ECECEC;
    --z-border:        #D1D1D1;
    --z-text:          #1A1A1A;
    --z-text-soft:     #5F5F5F;
    --z-success:       #16A34A;
    --z-warning:       #D97706;
    --z-danger:        #C42B1C;
    --z-radius:        8px;
    --z-radius-lg:     12px;
    --z-shadow:        0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
                 BlinkMacSystemFont, sans-serif;
    background: var(--z-bg);
    color: var(--z-text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--z-accent); text-decoration: none; }
a:hover { color: var(--z-accent-press); text-decoration: underline; }

code, .z-key {
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    background: var(--z-surface-hi);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* === Header / brand strip ============================================ */

.z-header {
    background: var(--z-surface);
    border-bottom: 1px solid var(--z-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--z-shadow);
}
.z-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.z-brand-mark {
    color: var(--z-accent);
    font-size: 28px;
    line-height: 1;
}
.z-brand-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--z-accent);
}
.z-brand-sub {
    color: var(--z-text-soft);
    font-size: 14px;
    margin-left: 4px;
}
.z-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.z-nav a {
    color: var(--z-text);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}
.z-nav a:hover {
    background: var(--z-surface-hi);
    text-decoration: none;
}
.z-logout-form { display: inline; margin: 0; }
.z-btn-link {
    background: none;
    border: none;
    color: var(--z-text-soft);
    cursor: pointer;
    font: inherit;
    padding: 6px 10px;
    border-radius: 6px;
}
.z-btn-link:hover { color: var(--z-danger); background: var(--z-surface-hi); }

/* === Main layout ===================================================== */

.z-main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 32px;
}
.z-section {
    background: var(--z-surface);
    border-radius: var(--z-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--z-shadow);
}
.z-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.z-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--z-text);
}
.z-title-2 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 12px;
    color: var(--z-text);
}
.z-subtitle {
    color: var(--z-text-soft);
    margin: 0 0 16px;
}
.z-empty {
    padding: 32px;
    text-align: center;
    color: var(--z-text-soft);
    border: 1px dashed var(--z-border);
    border-radius: var(--z-radius);
}

/* === Forms =========================================================== */

.z-form { max-width: 480px; }
.z-form-wide { max-width: 640px; }
.z-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.z-label > span {
    font-weight: 500;
    color: var(--z-text);
}
.z-input {
    padding: 10px 12px;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    background: var(--z-surface);
    color: var(--z-text);
    font: inherit;
    transition: border-color 120ms, box-shadow 120ms;
}
.z-input:focus {
    outline: none;
    border-color: var(--z-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 199, 0.15);
}
.z-hint {
    color: var(--z-text-soft);
    font-size: 12px;
}
textarea.z-input { resize: vertical; min-height: 70px; }

/* === Buttons ========================================================= */

.z-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--z-radius);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms, color 120ms, border-color 120ms;
    text-decoration: none;
}
.z-btn-primary {
    background: var(--z-accent);
    color: white;
}
.z-btn-primary:hover {
    background: var(--z-accent-hover);
    color: white;
    text-decoration: none;
}
.z-btn-primary:active {
    background: var(--z-accent-press);
}
.z-btn-secondary {
    background: var(--z-surface);
    color: var(--z-text);
    border-color: var(--z-border);
}
.z-btn-secondary:hover {
    background: var(--z-surface-hi);
    text-decoration: none;
    color: var(--z-text);
}
.z-btn-danger {
    background: var(--z-danger);
    color: white;
}
.z-btn-danger:hover {
    background: #A02115;
    color: white;
    text-decoration: none;
}
.z-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

/* === Tables ========================================================== */

.z-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.z-table th,
.z-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--z-border);
}
.z-table th {
    font-weight: 600;
    color: var(--z-text-soft);
    background: var(--z-surface-hi);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.z-table tbody tr:hover { background: var(--z-surface-hi); }
.z-table-compact th,
.z-table-compact td {
    padding: 6px 10px;
    font-size: 13px;
}
.z-row-revoked td { color: var(--z-text-soft); }
.z-row-expired td { color: var(--z-warning); }
.z-row-pending td { background: rgba(217, 119, 6, 0.04); }
.z-muted { color: var(--z-text-soft); }

/* === Filter pills ===================================================== */

.z-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.z-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--z-border);
    background: var(--z-surface);
    color: var(--z-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 120ms, border-color 120ms;
}
.z-pill:hover {
    background: var(--z-surface-hi);
    text-decoration: none;
}
.z-pill-active {
    background: var(--z-accent);
    color: white;
    border-color: var(--z-accent);
}
.z-pill-active:hover {
    background: var(--z-accent-press);
    color: white;
}

/* === Badges ========================================================== */

.z-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.z-badge-success { background: #DCFCE7; color: var(--z-success); }
.z-badge-info    { background: #E0F2FE; color: #0369A1; }
.z-badge-warning { background: #FEF3C7; color: var(--z-warning); }
.z-badge-danger  { background: #FEE2E2; color: var(--z-danger); }

/* === Login ============================================================ */

.z-login-card {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: var(--z-surface);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow);
}

/* === Issued license card ============================================= */

.z-issued-card {
    border: 2px solid var(--z-accent);
    border-radius: var(--z-radius-lg);
    padding: 24px;
    background: linear-gradient(135deg, rgba(14,165,199,0.05), transparent);
}
.z-key-box {
    margin: 16px 0;
    padding: 16px;
    background: var(--z-surface-hi);
    border-radius: var(--z-radius);
    text-align: center;
}
.z-key {
    font-size: 16px;
    letter-spacing: 1px;
    user-select: all;
}
.z-key-inline { font-size: 13px; }

/* === Deflist ========================================================== */

.z-deflist {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    margin: 16px 0;
}
.z-deflist dt {
    color: var(--z-text-soft);
    font-weight: 500;
}
.z-deflist dd { margin: 0; }

/* === Alerts =========================================================== */

.z-alert {
    padding: 12px 16px;
    border-radius: var(--z-radius);
    margin-bottom: 16px;
}
.z-alert-danger {
    background: #FEE2E2;
    color: var(--z-danger);
    border: 1px solid #FCA5A5;
}

/* === Status bar ====================================================== */

.z-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}
.z-status-reason {
    color: var(--z-text-soft);
    font-style: italic;
}

/* === Footer ========================================================== */

.z-footer {
    text-align: center;
    color: var(--z-text-soft);
    font-size: 12px;
    padding: 24px;
    margin-top: 40px;
}
