body{
    background:
        radial-gradient(circle at top left,#13203a 0%,#081120 45%,#050b16 100%);
    color:#f1f5f9;
    font-family:'Segoe UI',sans-serif;
    min-height:100vh;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#081120;
}

::-webkit-scrollbar-thumb{
    background:#1e3a5f;
    border-radius:10px;
}

/* BOXES */

.container-box{
    background:rgba(15,23,42,.78);
    border:1px solid rgba(255,255,255,.06);
    backdrop-filter:blur(10px);
    border-radius:24px;
    padding:28px;
    box-shadow:
        0 0 35px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.04);
}

/* SIDEBAR */

.sidebar{
    background:linear-gradient(
        180deg,
        rgba(10,20,38,.96),
        rgba(6,12,24,.98)
    );

    border-right:1px solid rgba(255,255,255,.05);

    min-height:100vh;

    box-shadow:
        10px 0 30px rgba(0,0,0,.25);
}

/* CARDS */

.card-dark{
    background:
        linear-gradient(
            145deg,
            rgba(20,30,50,.95),
            rgba(10,18,32,.95)
        );

    border:1px solid rgba(255,255,255,.05);

    border-radius:22px;

    box-shadow:
        0 0 20px rgba(0,0,0,.25);

    transition:.25s;
}

.card-dark:hover{
    transform:translateY(-3px);

    box-shadow:
        0 0 25px rgba(0,140,255,.12);
}

/* TABLES */

.table{
    color:#f8fafc;
    border-radius:20px;
    overflow:hidden;
}

.table th{
    background:#17253d;
    border:none;
    padding:16px;

    color:#f8fafc;

    font-size:15px;
    font-weight:700;

    letter-spacing:.5px;
}

.table td{
    background:rgba(15,23,42,.75);
    border-color:rgba(255,255,255,.04);
    padding:14px;
    vertical-align:middle;

    color:#e2e8f0;
    font-size:16px;
    font-weight:500;
}

.table tr:hover td{
    background:rgba(30,41,59,.95);
}

/* INPUTS */

.form-control,
.form-select{

    background:rgba(8,15,30,.95);
    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    height:48px;
}

.form-control:focus,
.form-select:focus{

    background:rgba(8,15,30,.95);
    color:white;

    border-color:#3b82f6;

    box-shadow:
        0 0 0 3px rgba(59,130,246,.15);
}

/* BUTTONS */

.btn{
    border-radius:14px;
    font-weight:600;
    padding:10px 18px;
    transition:.2s;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{
    background:#2563eb;
    border:none;
}

.btn-warning{
    background:#facc15;
    border:none;
    color:black;
}

.btn-danger{
    border:none;
}

/* TITLES */

h1,h2,h3,h4,h5{
    font-weight:700;
    letter-spacing:.3px;
}

/* LIVE COUNTERS */

.live-counter{
    text-align:center;
    padding:20px;
}

.live-counter-number{
    font-size:48px;
    font-weight:800;
    line-height:1;
}

.live-green{
    box-shadow:0 0 25px rgba(0,255,140,.12);
}

.live-yellow{
    box-shadow:0 0 25px rgba(255,200,0,.12);
}

.live-red{
    box-shadow:0 0 25px rgba(255,0,0,.12);
}

/* FOOTER */

.footer{
    text-align:center;
    color:#94a3b8;
    padding:25px;
    font-size:13px;
    opacity:.8;
}

/* LINKS */

a{
    text-decoration:none;
}

/* BADGES */

.badge-online{
    background:#16a34a;
    color:white;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
}

.badge-offline{
    background:#dc2626;
    color:white;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
}

/* =========================
   GGPR GRAFIK V6
========================= */

.ggpr-body {
    background:
        radial-gradient(circle at top left, rgba(0,180,255,0.12), transparent 25%),
        linear-gradient(135deg, #071018 0%, #0b1622 45%, #0f2232 100%);
    min-height: 100vh;
    color: #eaf4ff;
    font-family: 'Segoe UI', sans-serif;
}

.command-wrapper {
    padding: 35px;
}

.glass-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 28px;

    border-radius: 24px;

    background: rgba(10, 20, 35, 0.72);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 0 30px rgba(0,180,255,0.10),
        0 10px 40px rgba(0,0,0,0.45);
}

.command-subtitle {
    color: #6fbfff;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.command-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
}

.command-clock-box {
    text-align: right;
}

.clock-label {
    color: #7f95aa;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.command-clock {
    font-size: 20px;
    font-weight: 700;
    color: #9fe3ff;
}

.status-card {
    background: rgba(15,25,40,0.75);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 22px;

    padding: 22px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 0 20px rgba(0,180,255,0.08);

    transition: 0.25s ease;
}

.status-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(0,180,255,0.20);
}

.live-now {
    border-color: rgba(0,255,170,0.35);

    box-shadow:
        0 0 25px rgba(0,255,170,0.18);
}

.warning-card {
    border-color: rgba(255,193,7,0.35);
}

.status-label {
    color: #7f95aa;
    font-size: 13px;
    margin-bottom: 10px;
}

.status-value {
    font-size: 34px;
    font-weight: 800;
}

.glass-panel {
    background: rgba(10,20,35,0.72);

    border-radius: 24px;

    border: 1px solid rgba(255,255,255,0.08);

    padding: 28px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.45);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

.table-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.table-subtitle {
    color: #7f95aa;
    margin-top: 5px;
}

.btn-command {
    background: linear-gradient(135deg, #00bfff, #007bff);

    border: none;

    color: white;

    padding: 12px 22px;

    border-radius: 14px;

    font-weight: 700;

    box-shadow:
        0 0 20px rgba(0,180,255,0.25);
}

.btn-command:hover {
    color: white;

    transform: translateY(-2px);
}

.ggpr-table {
    color: #dce9f5;
    margin: 0;
}

.ggpr-table thead th {
    background: rgba(0,180,255,0.12);

    color: #9fe3ff;

    border: none;

    padding: 18px;

    font-size: 14px;

    letter-spacing: 1px;

    position: sticky;
    top: 0;
}

.ggpr-table tbody tr {
    border-color: rgba(255,255,255,0.05);

    transition: 0.2s ease;
}

.ggpr-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.ggpr-table td {
    border-color: rgba(255,255,255,0.05);

    padding: 18px;
}

.ratownik-cell {
    font-weight: 700;
    color: #ffffff;
}

.date-cell {
    color: #9ab2c8;
}

.status-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 90px;

    padding: 10px 16px;

    border-radius: 999px;

    font-weight: 700;

    letter-spacing: 1px;
}

.status-yes {
    background: rgba(0,255,170,0.16);

    color: #00ffae;

    border: 1px solid rgba(0,255,170,0.25);

    box-shadow:
        0 0 18px rgba(0,255,170,0.15);
}

.status-no {
    background: rgba(255,70,70,0.14);

    color: #ff7070;

    border: 1px solid rgba(255,70,70,0.25);
}

/* MOBILE */

@media (max-width: 768px) {

    .command-wrapper {
        padding: 18px;
    }

    .glass-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .command-title {
        font-size: 28px;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .status-value {
        font-size: 28px;
    }

    .ggpr-table td,
    .ggpr-table th {
        padding: 14px;
        font-size: 13px;
    }

}

/* =========================
   GGPR FREKWENCJA
========================= */

body {
    background:
        radial-gradient(circle at top left, rgba(0,180,255,0.10), transparent 25%),
        linear-gradient(135deg, #071018 0%, #0c1724 45%, #102435 100%);

    color: #eaf4ff;

    font-family: 'Segoe UI', sans-serif;
}

/* TOPBAR */

.topbar {

    background: rgba(10,20,35,0.75);

    backdrop-filter: blur(14px);

    border-bottom:
        1px solid rgba(255,255,255,0.08);

    padding: 28px 32px;

    font-size: 34px;

    font-weight: 800;

    color: #ffffff;

    letter-spacing: 1px;

    box-shadow:
        0 0 30px rgba(0,180,255,0.08);
}

/* MAIN */

.wrapper {
    padding: 30px;
}

/* BUTTON */

.back {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    background:
        linear-gradient(135deg,#00bfff,#007bff);

    color: white;

    text-decoration: none;

    padding: 12px 22px;

    border-radius: 14px;

    font-weight: 700;

    border: none;

    box-shadow:
        0 0 20px rgba(0,180,255,0.25);

    transition: 0.2s ease;
}

.back:hover {

    transform: translateY(-2px);

    color: white;

    box-shadow:
        0 0 25px rgba(0,180,255,0.35);
}

/* LEGEND */

.legend {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 24px;
}

.legend div {

    padding: 10px 16px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 700;

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);
}

/* FORM PANEL */

.wrapper form,
.wrapper > div[style*="background:#111827"] {

    background: rgba(10,20,35,0.72) !important;

    border:
        1px solid rgba(255,255,255,0.08) !important;

    border-radius: 24px !important;

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.45);
}

/* TABLE PANEL */

.table-container {

    overflow: auto;

    border-radius: 24px;

    background:
        rgba(10,20,35,0.72);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.45);
}

/* TABLE */

table {

    border-collapse: separate;

    border-spacing: 0;

    min-width: 1400px;

    width: 100%;
}

/* HEADERS */

th {

    background:
        rgba(20,35,55,0.95) !important;

    color: #dff4ff !important;

    border:
        1px solid rgba(255,255,255,0.05);

    padding: 18px 14px;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    position: sticky;

    top: 0;

    z-index: 3;

    backdrop-filter: blur(10px);
}

/* CELLS */

td {

    padding: 14px;

    border:
        1px solid rgba(255,255,255,0.05);

    text-align: center;

    font-size: 14px;

    transition: 0.2s ease;
}

tr:hover td {

    background:
        rgba(255,255,255,0.03);
}

/* NAME COLUMN */

.name {

    position: sticky;

    left: 0;

    background:
        rgba(18,30,48,0.98) !important;

    min-width: 240px;

    z-index: 2;

    font-weight: 700;

    color: #ffffff;

    border-right:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        6px 0 20px rgba(0,0,0,0.25);
}

/* STATUS COLORS */

.status-1 {

    background:
        rgba(0,255,170,0.16);

    color: #00ffae;

    font-weight: 700;
}

.status-05 {

    background:
        rgba(255,180,0,0.14);

    color: #ffcc66;

    font-weight: 700;
}

.status-U {

    background:
        rgba(0,150,255,0.14);

    color: #7dd3fc;

    font-weight: 700;
}

.status-L4 {

    background:
        rgba(255,70,70,0.14);

    color: #ff8080;

    font-weight: 700;
}

.status-Url {

    background:
        rgba(170,90,255,0.14);

    color: #d8b4fe;

    font-weight: 700;
}

.status-Z {

    background:
        rgba(120,120,120,0.18);

    color: #d4d4d8;

    font-weight: 700;
}

/* INPUTS */

select,
input[type="date"],
input[type="number"],
input[type="text"] {

    background:
        rgba(15,25,40,0.92) !important;

    color: white !important;

    border:
        1px solid rgba(255,255,255,0.08) !important;

    border-radius: 12px !important;

    padding: 10px !important;

    font-weight: 600;

    transition: 0.2s ease;
}

select:focus,
input:focus {

    outline: none;

    border-color:
        rgba(0,180,255,0.45) !important;

    box-shadow:
        0 0 20px rgba(0,180,255,0.20);
}

/* ADMIN BUTTONS */

button {

    background:
        linear-gradient(135deg,#00bfff,#007bff) !important;

    border: none !important;

    border-radius: 14px !important;

    color: white !important;

    font-weight: 700 !important;

    padding: 12px 20px !important;

    transition: 0.2s ease;
}

button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 25px rgba(0,180,255,0.30);
}

/* EVENT EDIT LINKS */

a {

    transition: 0.2s ease;
}

a:hover {

    opacity: 0.85;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b1622;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 999px;
}

/* MOBILE */

@media (max-width: 768px) {

    .wrapper {
        padding: 16px;
    }

    .topbar {
        font-size: 24px;
        padding: 22px;
    }

    th,
    td {
        font-size: 12px;
        padding: 10px;
    }

    .name {
        min-width: 180px;
    }

    select,
    input {
        min-width: 80px;
        font-size: 12px;
    }

}

/* =========================
   FREKWENCJA ANALYTICS
========================= */

.analytics-grid {

    display: grid !important;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 28px;
}

.analytics-card {

    background:
        rgba(10,20,35,0.72);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    padding: 24px;

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.35);

    transition: 0.25s ease;
}

.analytics-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 0 25px rgba(0,180,255,0.18);
}

.analytics-label {

    color: #7f95aa;

    font-size: 12px;

    letter-spacing: 2px;

    margin-bottom: 14px;

    text-transform: uppercase;
}

.analytics-value {

    font-size: 36px;

    font-weight: 800;

    color: #ffffff;
}

.analytics-value.cyan {
    color: #67e8f9;
}

.analytics-value.orange {
    color: #f59e0b;
}

.analytics-value.yellow {
    color: #fde047;
}

.analytics-value.green {
    color: #00ffae;
}

/* =========================
   MEMBER STATUS
========================= */

.ratownik-box {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.ratownik-name {

    font-weight: 700;

    color: #ffffff;
}

.member-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    padding: 5px 12px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.member-staly {

    background:
        rgba(0,180,255,0.16);

    color: #67e8f9;

    border:
        1px solid rgba(0,180,255,0.28);

    box-shadow:
        0 0 18px rgba(0,180,255,0.18);
}

.member-stazysta {

    background:
        rgba(255,180,0,0.14);

    color: #fbbf24;

    border:
        1px solid rgba(255,180,0,0.25);

    box-shadow:
        0 0 18px rgba(255,180,0,0.14);
}

/* =========================
   EVENT ACTION BUTTONS
========================= */

.event-action-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 6px;

    padding: 6px 10px;

    border-radius: 10px;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none !important;

    transition: 0.2s ease;
}

/* EDIT */

.edit-btn {

    background:
        rgba(0,180,255,0.14);

    color: #062033 !important;

    border:
        1px solid rgba(0,180,255,0.28);
}

.edit-btn:hover {

    background:
        rgba(0,180,255,0.24);

    transform: translateY(-1px);
}

/* DELETE */

.delete-btn {

    background:
        rgba(255,70,70,0.14);

    color: #7f1d1d !important;

    border:
        1px solid rgba(255,70,70,0.24);
}

.delete-btn:hover {

    background:
        rgba(255,70,70,0.22);

    transform: translateY(-1px);
}

/* =========================
   LOGIN LOGO PREMIUM
========================= */

.login-logo-wrap {

    display: flex;

    justify-content: center;

    align-items: center;

    margin-bottom: 26px;
}

.login-logo {

    width: 220px;

    max-width: 100%;

    border-radius: 50%;

    background: transparent;

    filter:
        drop-shadow(0 0 18px rgba(0,180,255,0.18))
        drop-shadow(0 0 35px rgba(0,180,255,0.12));

    transition: 0.3s ease;
}

.login-logo:hover {

    transform: scale(1.03);

    filter:
        drop-shadow(0 0 25px rgba(0,180,255,0.28))
        drop-shadow(0 0 45px rgba(0,180,255,0.18));
}
