/* assets/style.css */
:root{
  --bg:#f6f8fb; --sidebar:#0c2f4a; --accent:#0a72ef; --accent-2:#ff8a00;
  --card:#ffffff; --muted:#6c757d;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Arial;background:var(--bg);color:#142026}
.evoip {
	background: #fd8f1b;
	font-size: 9px;
	border-radius: 6px;
	color: white;
	width: 31px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 5px;
	vertical-align: top;
	margin-top: 3px;
}

.layout {display:flex;min-height:100vh}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;          /* pełna wysokość ekranu */
  background: linear-gradient(180deg, var(--sidebar), #1A1D21);
  color: #fff;
  padding: 20px;
}
.sidebar .brand{font-weight:700;font-size:20px;margin-bottom:20px}
.sidebar nav a{display:block;color:#cfe8ff;padding:10px;border-radius:6px;text-decoration:none;margin-bottom:6px}
.sidebar nav a.active, .sidebar nav a:hover{background:rgba(255,255,255,0.06);color:#fff}
.main{flex:1;padding:0}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:#fff;border-bottom:1px solid #e6eef6}
.topbar h1{font-size:18px;margin:0}
.topbar .contract{margin-top:2px; color:var(--muted);font-size:13px}
.content{padding:20px}
.row{display:flex;gap:20px;margin-bottom:20px}
.card{background:var(--card);border-radius:10px;box-shadow:0 2px 8px rgba(15,23,42,0.04);padding:14px}
.card.small{flex:1;min-height:90px}
.card.full{width:100%; margin-bottom:20px;}
.card .card-title{font-weight:600;margin-bottom:2px;display:flex;align-items:center; gap:8px}
.card-subtitle{margin-bottom:8px; font-size: 14px;color: #6c757d;}
.card-body{font-size:14px}
.card-body.large{font-size:22px;font-weight:700; display: flex; align-items: center}
.filters{display:flex;gap:8px;align-items:center}
.filters input{padding:6px;border:1px solid #e1ecfb;border-radius:6px}

.btn{background:var(--accent);color:#fff;padding:8px 10px;border-radius:6px;border:none;cursor:pointer}
.btn.black{background: #1A1D21;}
.btn.red{background: #cc2318;}
.btn-outline{background:transparent;border:1px solid #e1ecfb;padding:7px 9px;border-radius:6px;cursor:pointer}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-icon:hover {
    opacity:0.85;
}
.btn-red {
    color:#f03500;
}

#back-to-main{background:#555555;}
.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(180deg,#e9f2ff,#f6fbff);margin:0}
.login-card{background:#fff;padding:30px;border-radius:12px;box-shadow:0 6px 30px rgba(10,30,60,0.08);width:360px}
.login-card h2{margin-top:0}
.login-card input{width:100%;padding:10px;margin:8px 0;border-radius:6px;border:1px solid #e6eef6}

/* Styl przycisku Zaloguj */
.login-card .btn-primary {
  width: 100%;                     /* pełna szerokość formularza */
  background: linear-gradient(135deg, #0a72ef, #3fa7ff);
  color: #fff;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(10, 40, 80, 0.15);
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top:20px;
}

/* Efekt po najechaniu */
.login-card .btn-primary:hover {
  background: linear-gradient(135deg, #0a5adf, #3399ff);
  box-shadow: 0 6px 12px rgba(10, 40, 80, 0.2);
  transform: translateY(-1px);
}

.login-card .btn-primary:disabled {
    background: linear-gradient(135deg, #0a0a05, #000000);
    border-color: #6e8298;
    cursor: not-allowed;
    opacity: 0.8;
}


.alert{background:#ffe6e6;padding:8px;border-radius:6px;color:#8a1f1f}
.muted{color:#8a99a8;font-size:13px}
.hidden{display:none}
.player{margin-top:12px;padding:8px;border-radius:8px;border:1px dashed #e6f2ff;background:#fbfdff}
.pagination{margin-top:12px}
.logout-btn {
  display: block;          /* zajmuje całą szerokość kontenera */
  width: 100%;             /* pełna szerokość sidebar */
  box-sizing: border-box;  /* uwzględnia padding */
  color: #fff;
  background-color: #d9534f;
  padding: 10px;           /* dopasuj do reszty linków */
  border-radius: 6px;
  text-decoration: none;
  text-align: center;        /* wyrównanie jak w menu */
  margin-top: 10px;        /* odrobina odstępu od menu */
}

.logout-btn:hover {
  background-color: #c9302c;
}

/* Styl dla przycisku Admin Panel */
.btn-admin {
    display: block;
    text-align: center;
    background-color: #f39c12; /* Jasne pomarańczowe tło */
    color: #ffffff; /* Biały tekst */
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px; /* Dodaj odstęp od innych elementów */
    transition: background-color 0.3s ease, color 0.3s ease; /* Płynne przejście */
}

.btn-admin:hover {
    background-color: #e67e22; /* Ciemniejsze pomarańczowe tło po najechaniu */
    color: #ffffff; /* Tekst pozostaje biały */
}

/*/////////////////////////*/
/* LOGO */
/*/////////////////////////*/
.login-logo {
  text-align: center;
  margin-bottom: 20px;
}
.login-logo img {
  max-width: 220px; /* dopasuj szerokość */
  height: auto;
}

.sidebar-logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { filter: brightness(1); }
  30%, 30%, 50%, 80% { filter: brightness(1.1); }
}

.sidebar-logo-separator {
  height: 1px;                     /* cienki pasek */
  width: 100%;
  background-color: rgba(255,255,255,0.2); /* lekko widoczny, wtopiony w sidebar */
  margin: 12px 0;                  /* odstęp od logo i menu */
  border-radius: 1px;              /* lekko zaokrąglony */
}

/* Stopka przy dolnej krawędzi */
.sidebar-footer {
  position: fixed;
  bottom: 10px;
  left: 8;          /* początek sidebara */
  width: 240px;
  
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  line-height: 1.4;
  text-align:center;
}

.sidebar-footer a{
	text-decoration:none;
	color: rgba(255,255,255,0.5);
}

.login-footer {
  position: fixed;               /* zawsze przy dolnej krawędzi okna */
  bottom: 10px;                  /* odstęp od dolnej krawędzi */
  left: 50%;                     /* wyśrodkowanie poziome */
  transform: translateX(-50%);
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  line-height: 1.4;
}

.login-footer a{
	text-decoration:none;
	color: #6c757d;
}

.login-card .login-logo {
  display: block;
  margin: 0 auto 12px auto;   /* wyśrodkowanie i odstęp poniżej */
  max-width: 230px;            /* dopasowana szerokość */
}

/* Separator pod logo */
.login-card .login-logo-separator {
  height: 1px;
  width: 100%;                  /* długość separatora */
  background-color: rgba(0,0,0,0.1);
  margin: 12px auto 20px auto;  /* odstęp od logo i formularza */
  border-radius: 1px;
}

.login-card h3{
    text-align:center;
}

.demo-label {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #ff8a00;  /* pomarańczowy pasek */
  border-radius: 4px;
}

/* Styl dla błędów */
.error {
    border: 1px solid #e74c3c;
    background-color: #fbeaea;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.error-header {
    font-weight: bold;
    cursor: pointer;
    color: #e74c3c;
    display: flex;
    align-items: center;
    text-decoration: none; /* Usuń podkreślenie */
}

.error-header:hover {
    text-decoration: none; /* Usuń podkreślenie po najechaniu */
}

.error-header .arrow {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.error-header.expanded .arrow {
    transform: rotate(90deg); /* Obrót strzałki w dół */
}

.error-details {
    margin-top: 3px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: monospace;
}

.hidden {
    display: none;
}

/* Styl dla aktywnego linku w sidebarze */
.nav-sections a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
}

.nav-sections span {
    width: 20px;          /* stała szerokość boxa na ikonę */
    text-align: center;   /* ikonka wycentrowana w boxie */
    margin-right: 2px;   /* odstęp od tekstu */
    flex-shrink: 0;       /* nie zmniejszaj ikony */
}

.nav-sections i {
    width: 22px;          /* stała szerokość boxa NA IKONĘ */
    height: 22px;         /* opcjonalnie – jeśli chcesz idealny kwadrat */
    line-height: 22px;    /* pionowe wyśrodkowanie */
    text-align: center;   /* wycentrowanie ikony */
    margin-right: 10px;   /* odstęp od tekstu */
    flex-shrink: 0;       /* ikona nie zmniejsza się */
    font-size: 18px;      /* wymuszenie jednolitego rozmiaru */
}

@media (max-width: 480px) {
    .nav-sections i {
        font-size: 16px;   /* opcjonalnie: mniejsza ikonka */
    }
}

/* Styl dla sukcesów */
.success {
    border: 1px solid #2ecc71;
    background-color: #eafaf1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #27ae60;
}

/* Styl dla logów */
.logs {
    border: 1px solid #3498db;
    background-color: #eaf3fb;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    color: #2980b9;
}

#adminLogs {
  margin-top: 10px;
}

/* Styl dla pierwszego błędu */
.first-error {
    margin-top: 10px; /* Dodaj margines nad pierwszym błędem */
}

/* Styl dla formularza zmiany hasła */
#changePasswordForm {
    display: flex;
    flex-direction: column; /* Ustaw elementy jeden pod drugim */
    gap: 12px; /* Odstęp między elementami */
    max-width: 500px; /* Maksymalna szerokość formularza */
    padding: 20px; /* Dodaj odstęp wewnętrzny */
    background: #ffffff; /* Tło formularza */
    border: 1px solid #e1ecfb; /* Obramowanie */
    border-radius: 8px; /* Zaokrąglone rogi */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Lekki cień */
}

#changePasswordForm label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

#changePasswordForm input {
    padding: 10px;
    border: 1px solid #e1ecfb;
    border-radius: 6px;
    font-size: 14px;
    width: 100%; /* Szerokość inputów ograniczona do szerokości formularza */
    box-sizing: border-box;
}

#changePasswordForm input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 4px rgba(10, 114, 239, 0.2);
}

#changePasswordForm .btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: auto; /* Przycisk nie zajmuje całej szerokości */
    align-self: flex-start; /* Wyrównanie przycisku do lewej */
}

#changePasswordForm .btn-primary:hover {
    background: #0a5adf;
    box-shadow: 0 4px 8px rgba(10, 40, 80, 0.2);
}

#changePasswordForm .btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Kontener dla formularza zmiany hasła i wskazówek */
.change-password-container {
    display: flex;
    flex-wrap: wrap; /* Umożliwia zawijanie elementów na mniejszych ekranach */
    gap: 20px; /* Odstęp między formularzem a wskazówkami */
    align-items: flex-start; /* Wyrównanie do góry */
}

#changePasswordForm {
    flex: 1; /* Formularz zajmuje jedną część dostępnej przestrzeni */
    max-width: 500px; /* Maksymalna szerokość formularza */
    padding: 20px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e1ecfb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-guidelines {
    flex: 1; /* Wskazówki zajmują jedną część dostępnej przestrzeni */
    max-width: 420px; /* Maksymalna szerokość wskazówek */
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e1ecfb;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-guidelines h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent);
}

.password-guidelines ul {
    padding-left: 20px; /* Wcięcie dla listy */
    margin: 0;
    list-style: disc; /* Punktory dla listy */
}

.password-guidelines li {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* Styl dla spełnionych wskazówek */
.password-guidelines li.valid {
    color: #27ae60; /* Zielony kolor */
    font-weight: bold;
}

/* Styl dla niespełnionych wskazówek */
.password-guidelines li.invalid {
    color: #e74c3c; /* Czerwony kolor */
    font-weight: normal;
}

/* Styl dla informacji o ograniczeniu zmiany hasła */
.password-restriction {
    color: #e74c3c; /* Czerwony kolor tekstu */
    font-size: 14px;
    font-weight: bold;
    margin-top: 22px;
}

#passwordChangeStatus {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}
/* ------------------------------- */
/* ------------------------------- */

.password-area {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.pw-form {
    flex: 1;
    max-width: 360px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cdd2d8;
    border-radius: 6px;
    font-size: 14px;
}

.btn.btn-primary {
    padding: 8px 14px;
    border-radius: 6px;
}

.btn.btn-admin1 {
    padding: 6px 8px;
    border-radius: 6px;
}

.password-rules-box {
	margin-top:22px;
    width: 240px;
    background: #f5f7fa;
    padding: 15px;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    font-size: 13px;
}

.password-rules-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.password-rules-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.password-rules-box li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    color: #666;
}

.password-rules-box li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 11px;
}

.password-rules-box li.ok::before {
    content: "✔";
    color: green;
    font-size: 12px;
}

.password-rules-box li.ok {
    color: green;
    font-weight: 500;
}

/* ------------------------------- */
/* ------------------------------- */
.support-box {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 20px 25px;
    max-width: 450px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.support-box h2 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.support-item {
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-label {
    font-weight: 700;
    color: #555;
}

.support-value {
    color: #0078ff;
    text-decoration: none;
    font-weight: 500;
}

.support-value:hover {
    text-decoration: underline;
}

.support-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

#session-timeout {
    display: block;
    text-align: center;
    width: 100%;
    opacity: 0.5;
    font-size: 10px;
    margin-top: 10px;
}


/* ====================== TABELE ============================== */
/* wrapper */
.info-table-wrap { display: inline-block; vertical-align: top; }

/* tabela */
.info-table {
    display: inline-table !important;
    width: auto !important;
    table-layout: auto !important;
    border-collapse: collapse;
    font-size: 14px;
}

/* kolumny */
.info-table col:first-child { width: 180px; }
.info-table td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    color: #555;
}

/* normalizacja komórek */
.info-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #e1e1e1;
    min-height: 0 !important;
    height: auto !important;
}

.info-table i {
    display: inline-block;
    width: 20px;          /* szerokość ikony – możesz zmienić na 22–28px */
    margin-right: 5px;    /* odstęp między ikoną a tekstem */
    text-align: center;   /* ikona wyśrodkowana w bloku */
    vertical-align: middle;
	transform: translateY(-2px);
}

.info-table #ban-status{ /* poprawka do ikony statusu konta */
	margin-right: 0px;
}


/* ====================== TABELE ============================== */
.table-wrap {
    background: white;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 5px;
}

table {
    width: 100%;
    border-collapse: separate;  /* <--- KLUCZOWE */
    border-spacing: 0;          /* żeby nie było przerw między komórkami */
    min-width: 600px;
}

thead {
    background: #0c2f4a;
    color: #fff;
}
thead th {
    padding: 10px;
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}
tbody tr:nth-child(even) {
    background: #eef3f8;
}
tbody tr:hover {
    background: #d9e7f5;
}
tbody td {
    padding: 8px 10px;
    padding-left: 20px;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
}

table tbody tr:last-child td {
    border-bottom: none !important;
}


table th {
    padding: 10px 10px 10px 26px;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    color: #fff;
}

/* Podstawowa ikona (szara, nieaktywna) */
.sort-arrow {
    position: absolute;
    left: 11px;
    top: 51%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* Gdy aktywne sortowanie rosnące */
th.asc .sort-arrow,
th.desc .sort-arrow {
    color: #fff;
}


/* CRON */
/* Data (górna wartość) */
#cron-last {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Opis statusu (dolna linia) */
#cron-desc {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Kolor kropek statusu */
#cron-desc .text-success { color: #28a745 !important; }
#cron-desc .text-warning { color: #ffc107 !important; }
#cron-desc .text-danger  { color: #dc3545 !important; }

/* Ikona kropki */
#cron-desc i {
    font-size: 11px;
}

#cron-last div {
    margin-bottom:10px;
    font-size: 15px;
}

/* ================================================================================= */
/* --- GRID: 2 KOLUMNY BLIŻEJ SIEBIE --- */
.user-form-grid {
    max-width: 740px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 9px;
    align-items: start;
}

/* pełna szerokość (hasło, przycisk) */
.user-form-grid .full-width {
    grid-column: 1 / -1;
}

/* --- GRUPA POLA --- */
.form-group {
    display: flex;
    flex-direction: column;
}

/* --- LABEL --- */
.form-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #2f3f52;
}

/* --- INPUTY: CIEMNIEJSZA RAMKA + WĘŻSZE --- */
.form-group input,
.form-group select {
    width: 100%;
    max-width: 280px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #98a6b3;
    font-size: 13px;
    background: linear-gradient(#ffffff, #f7f9fc);
    transition: all 0.15s ease;
}

/* --- HASŁO: TEŻ KRÓTSZE --- */
.password-row input {
    max-width: 280px;
}

/* --- FOCUS --- */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0c84ff;
    box-shadow: 0 0 0 2px rgba(12,132,255,0.18);
}

/* --- RZĄD HASŁA --- */
.password-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- AKCJE --- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

/* --- PRZYCISKI --- */
.btn.primary {
    background: linear-gradient(135deg, #0c84ff, #005edc);
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 7px;
    font-weight: 600;
}

.btn.small {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
}

/* --- MOBILE --- */
@media (max-width: 820px) {
    .user-form-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .password-row input {
        max-width: 100%;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn.primary {
        width: 100%;
    }

    .col-left,
    .col-right {
        grid-column: 1;
    }
}

.user-form-grid {
    grid-auto-flow: row dense;
}

.col-left {
    grid-column: 1;
}

.col-right {
    grid-column: 2;
}

.form-msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}

.form-msg.success {
    background: #e6f6ec;
    border: 1px solid #b9e2c9;
    color: #1f7a3f;
}

.form-msg.error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a12622;
}


/*************************************************************/
.record-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.record-modal.hidden {
    display: none;
}

.record-modal-content {
    border-radius: 10px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden; /* ważne – żeby header ładnie się zlał z obramowaniem */
}

.record-modal-header {
    background: #0c2f4a;
    color: #fff;
    padding: 2px 12px;        /* było 12px 16px — teraz dużo niżej */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;          /* było 17px */
    font-weight: 600;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    min-height: 28px;         /* gwarantuje niski, ale równy header */
}

/* Mniejszy przycisk zamykania */
.record-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    cursor: pointer;
    border-radius: 4px;
	padding-top: 2px;

    color: #fff;
    background: rgba(255,255,255,0.12);
}

.record-modal-close i {
    font-size: 14px;   /* kontrolujesz wizualnie */
    line-height: 1;
}

.record-modal-close:hover {
    background: rgba(255,255,255,0.22);
    color: red;
}

.record-modal-close:active {
    transform: scale(0.9);
}

.record-modal-body {
    padding: 20px;
    padding-top: 10px;
    background: #fff;
}

.record-modal audio {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
}



.ui-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ui-modal.hidden {
    display: none;
}

/* okno */
.ui-modal-box {
    width: 50%;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* header */
.ui-modal-header {
    background: #0c2f4a;
    color: #fff;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    min-height: 32px;
}

/* X */
.ui-modal-close {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    font-size: 16px;
    user-select: none;
	padding-top: 2px;
}

.ui-modal-close:hover {
    background: rgba(255,255,255,0.25);
    color:red;
}

/* body */
.ui-modal-body {
    padding: 16px;
    font-size: 14px;
    color: #333;
    background:var(--bg);
}

/* footer (opcjonalny) */
.ui-modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

.ui-modal-footer button {
    padding: 6px 12px;
    margin-left: 6px;
}


/******************************************************/
.rp-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    min-width: 330px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* PLAY */
.rp-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-play-btn i {
    font-size: 22px;
    margin-left: 2px;
}

.rp-play-btn.rp-pause {
    background: #d93025;
}

.rp-play-btn.rp-pause i {
    margin-left: -1px;
}


/* CENTER */
.rp-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* PROGRESS */
.rp-progress {
    position: relative;
    height: 6px;
    background: #e6e8eb;
    border-radius: 999px;
    touch-action: none;
    user-select: none;
}

.rp-progress-bar {
    height: 100%;
    background: #1a73e8;
    border-radius: 999px;
}

.rp-progress-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* TIME */
.rp-time {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

/* VOLUME */
.rp-volume-side {
    height: 72px;                 /* wysokość playera */
    width: 36px;                  /* wąski frame */
    display: flex;
    flex-direction: column;       /* 🔑 IKONA NAD */
    align-items: center;
    gap: 6px;

    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    position: relative;
}

.rp-mute {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    line-height: 1;
    margin-top: 6px;
}



/* PIONOWY SUWAK – STYL CUSTOM */
#rp-volume {
    -webkit-appearance: none;
    appearance: none;

    width: 40px;                  /* długość po obrocie */
    height: 4px;                  /* grubość toru */
    
    margin-top: 16px;
    background: #e6e8eb;
    border-radius: 999px;
    cursor: pointer;

    transform: rotate(-90deg);    /* pionowy */
}

/* thumb */
#rp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-radius: 50%;
}

#rp-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-radius: 50%;
    border: none;
}

.rp-vol-tooltip {
    position: absolute;
    padding: 4px 6px;
    font-size: 11px;
    background: #1a73e8;
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity .15s ease;
    z-index: 10;
}









#ui-confirm {
    position: fixed;
    inset: 0;
    z-index: 999;
}

#ui-confirm[hidden] {
    display: none;
}

#ui-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

#ui-confirm-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 420px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

#ui-confirm-title {
    padding: 14px 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

#ui-confirm-body {
    padding: 16px;
}

#ui-confirm-actions {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    text-align: right;
}

#billingResults{
	margin-top:5px;
}