/* kioskside/assets/css/login-dashboard.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- USTAWIENIA PODSTAWOWE --- */
body.login, body.page-template-default {
    background-color: #f4f5f7; /* Jaśniejsze, nowocześniejsze tło */
}

/* === Strona logowania (bez zmian) === */
#login { width: 420px !important; padding: 40px 30px !important; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
#login h1 a { background-image: none !important; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 28px; color: #333; width: auto !important; height: auto !important; text-indent: 0 !important; pointer-events: none; }
#login h1 a::after { content: 'KioskSide Panel'; }
.kioskside-login-container { max-width: 420px; margin: 100px auto; padding: 40px 30px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); font-family: 'Poppins', sans-serif; }
/* ... (reszta stylów logowania pozostaje bez zmian) ... */


/* ======================================================= */
/* === NOWE, NOWOCZESNE STYLE DLA PANELU KLIENTA (/panel-klienta/) === */
/* ======================================================= */

.kiosk-dashboard.modern {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.kiosk-dashboard.modern .kiosk-dashboard-header {
    margin-bottom: 40px;
}

.kiosk-dashboard.modern .kiosk-dashboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #172b4d;
    margin: 0;
}

.kiosk-dashboard.modern .kiosk-dashboard-header .lead {
    font-size: 16px;
    color: #6b778c;
    margin-top: 5px;
}

/* Karty podsumowujące */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.summary-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.summary-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #e9f2ff;
    color: #4A90E2;
}

.summary-card .card-icon::before {
    font-family: 'Dashicons';
    font-size: 28px;
}
.icon-calendar::before { content: "\f145"; }
.icon-receipt::before { content: "\f463"; }
.icon-desktop::before { content: "\f472"; }


.summary-card .card-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #6b778c;
    margin: 0 0 5px 0;
}

.summary-card .card-content .card-data {
    font-size: 22px;
    font-weight: 600;
    color: #172b4d;
}

.summary-card .card-content .card-meta {
    font-size: 13px;
    color: #8993a4;
}

/* Lista kiosków */
.kiosk-list-section .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #172b4d;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe1e6;
}

.kiosk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.kiosk-item-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.kiosk-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kiosk-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f1f2f4;
}

.kiosk-card-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f7f8f9;
}
.kiosk-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kiosk-card-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
}

.kiosk-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}
.kiosk-status-badge.status-online { color: #216e4e; background-color: #c6f6d5; }
.kiosk-status-badge.status-offline { color: #9b2c2c; background-color: #fed7d7; }
.kiosk-status-badge.status-maintenance { color: #9c4221; background-color: #feebc8; }


.kiosk-card-body {
    padding: 20px;
    flex-grow: 1;
}

.kiosk-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.info-item, .info-item-full {
    font-size: 14px;
}
.info-item-full { margin-top: 10px; }

.info-label {
    display: block;
    color: #6b778c;
    font-size: 13px;
    margin-bottom: 3px;
}
.info-value {
    color: #172b4d;
    font-weight: 500;
}
.info-value a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}
.info-value a:hover { text-decoration: underline; }

.info-value code.kiosk-key-red {
    background-color: #fbe9e7;
    color: #c62828;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    user-select: all;
}

/* ZMIANA: Usunięcie starej stopki i dodanie nowej siatki */
.kiosk-card-footer { display: none; } /* Ukrywamy starą stopkę */

.kiosk-card-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background-color: #fafbfc;
    border-top: 1px solid #f1f2f4;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.action-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .3s ease;
    border: 1px solid transparent;
}

.action-button.primary {
    background-color: #4A90E2;
    color: #fff;
}
.action-button.primary:hover {
    background-color: #357ABD;
    box-shadow: 0 4px 10px rgba(74, 144, 226, .3);
    transform: translateY(-2px);
}

.action-button.secondary {
    background-color: #f0f2f5;
    color: #444;
    border: 1px solid #dfe1e6;
}
.action-button.secondary:hover {
    background-color: #e9ecef;
    border-color: #c9ced4;
}

/* Dodatkowe style dla przycisków URL */
.url-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.url-button {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dfe1e6;
    transition: all 0.2s ease;
    cursor: pointer;
}
.url-button.open {
    background-color: #f7f8f9;
    color: #4A90E2;
}
.url-button.open:hover {
    background-color: #e9f2ff;
    border-color: #4A90E2;
}
.url-button.copy {
    background-color: #f7f8f9;
    color: #5e6c84;
}
.url-button.copy:hover {
    background-color: #e9ecef;
}

/* === POCZĄTEK: NOWE STYLE DLA SEKCJI WYKRESÓW === */
.kiosk-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Domyślnie wykres kołowy jest węższy */
    gap: 25px;
    margin-bottom: 50px;
}

.chart-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #172b4d;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f2f4;
}

.chart-container {
    position: relative;
    flex-grow: 1;
    min-height: 300px; /* Zapewnia odpowiednią wysokość */
}

@media (max-width: 992px) {
    .kiosk-charts-grid {
        grid-template-columns: 1fr; /* Jeden wykres pod drugim na mniejszych ekranach */
    }
}
/* === KONIEC: NOWE STYLE DLA SEKCJI WYKRESÓW === */