﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.card {
    padding: 20px 24px;
}

/* Email editor layout */
.card .note {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Subject + Body full width */
.card .input {
    width: 100%;
    box-sizing: border-box;
}

/* Email body textarea */
.card textarea.input {
    min-height: 300px;
    resize: vertical;
    padding: 12px;
    line-height: 1.5;
}

/* Subject input malo veći */
.card input[name="ApproveSubject"] {
    padding: 10px 12px;
    font-size: 1.05rem;
}

/* Ako grid ograničava širinu */
.grid {
    grid-template-columns: 1fr;
}






/* wrapper */
.company-table-wrapper {
    overflow-x: auto;
}

/* table base */
.company-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

/* header */
.company-table-head th {
    padding: 12px 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    color: #64748b; /* slate-500 */
    text-align: left;
    border-bottom: 1px solid rgba(148,163,184,.2);
}

/* rows */
.company-table-row {
    border-top: 1px solid rgba(148,163,184,.14);
}

    .company-table-row:hover {
        background: rgba(248,250,252,.8); /* slate-50 */
    }

/* cells */
.company-table td {
    padding: 14px;
    vertical-align: middle;
}

    /* column widths (KEY PART) */
    .company-table th:nth-child(1),
    .company-table td:nth-child(1) {
        width: 30%;
    }

    .company-table th:nth-child(2),
    .company-table td:nth-child(2) {
        width: 15%;
    }

    .company-table th:nth-child(3),
    .company-table td:nth-child(3) {
        width: 25%;
    }

    .company-table th:nth-child(4),
    .company-table td:nth-child(4) {
        width: 15%;
    }

    .company-table th:nth-child(5),
    .company-table td:nth-child(5) {
        width: 15%;
        text-align: right;
    }

/* text styles */
.company-name {
    font-weight: 700;
    color: #0f172a; /* slate-900 */
}

.company-oib {
    font-weight: 600;
    color: #334155;
}

.company-contact {
    color: #475569;
}

/* status pill (Tailwind style) */
.company-status-pill {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #e2e8f0; /* slate-200 */
    color: #334155;
}

/* actions */
.company-actions .btn {
    padding: 4px 12px;
    font-size: 0.8rem;
}







:root {
    --bg: #eef2f6;
    --cloud: #f6f8fb;
    --cloud2: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 22px;
}

.analytics-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* reusable cloud look */
.cloud {
    background: var(--cloud);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.analytics-header {
    background: var(--cloud2);
    padding: 22px 26px;
}

.analytics-title {
    font-weight: 800;
    letter-spacing: .4px;
    font-size: 28px;
    color: var(--text);
}

.analytics-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

/* 4 cards */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* default 2x2 */
    gap: 16px;
}

.stat-card {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.bg-blue {
    background: #3b82f6;
}

.bg-green {
    background: #22c55e;
}

.bg-purple {
    background: #a855f7;
}

.bg-orange {
    background: #f59e0b;
}

/* big panel */
.analytics-panel {
    padding: 18px;
    min-height: 420px;
}

.panel-title {
    font-weight: 700;
    color: var(--text);
    margin: 4px 4px 18px 6px;
}

.panel-empty {
    height: calc(100% - 42px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    text-align: center;
}

.panel-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(148,163,184,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.panel-empty-text {
    font-size: 13px;
}

/* responsive */
@media (min-width: 1200px) {
    /* ako želiš 4 u jednom redu kao na slici, promijeni ovdje */
    .analytics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-value {
        font-size: 30px;
    }
}

@media (max-width: 900px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}



/* KanataAdminWeb/wwwroot/css/site.css */

/* Users page */
.users-page,
.user-details-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.users-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(239,246,255,.92));
    border: 1px solid rgba(148,163,184,.20);
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.users-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 8px;
}

.users-title {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    color: #0f172a;
    font-weight: 800;
}

.users-subtitle {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    max-width: 640px;
}

.users-flash {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(59,130,246,.20);
    color: #1e3a8a;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.users-board {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
    overflow: hidden;
}

.users-table-wrap {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

    .users-table thead th {
        padding: 18px 22px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .10em;
        font-weight: 700;
        color: #64748b;
        background: rgba(248,250,252,.88);
        border-bottom: 1px solid rgba(148,163,184,.18);
        text-align: left;
        white-space: nowrap;
    }

    .users-table tbody td {
        padding: 20px 22px;
        border-bottom: 1px solid rgba(226,232,240,.85);
        vertical-align: middle;
    }

    .users-table tbody tr:last-child td {
        border-bottom: none;
    }

    .users-table tbody tr:hover {
        background: rgba(248,250,252,.72);
    }

.users-main {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}

.users-meta {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.users-email,
.users-roles,
.users-scope {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.users-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.users-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .users-status-pill.is-confirmed {
        background: rgba(34,197,94,.12);
        color: #15803d;
    }

    .users-status-pill.is-pending {
        background: rgba(245,158,11,.14);
        color: #b45309;
    }

.users-actions-col {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.users-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37,99,235,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .users-open-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(37,99,235,.28);
    }

.users-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(148,163,184,.22);
}

.user-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
}

.user-panel {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.user-panel-danger {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(254,242,242,.9));
}

.user-panel-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.user-panel-copy {
    margin: 0 0 20px;
    color: #64748b;
    line-height: 1.6;
}

.user-facts {
    display: grid;
    gap: 14px;
}

.user-fact {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248,250,252,.95);
    border: 1px solid rgba(226,232,240,.9);
}

.user-fact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.user-fact-value {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    word-break: break-word;
}

.users-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(220,38,38,.20);
}

.user-protected-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(254,243,199,.55);
    border: 1px solid rgba(245,158,11,.24);
    color: #92400e;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .user-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .users-hero {
        padding: 22px 20px;
        flex-direction: column;
        align-items: start;
    }

    .users-title {
        font-size: 30px;
    }

    .users-board {
        border-radius: 22px;
    }
}