/* OCPP.Core custom overrides — Tabler base */

/* Footer her zaman altta kalsın */
html, body { height: 100%; }
.wrapper { min-height: 100vh; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-body { flex: 1 1 auto; }

.tilegrid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-flow: dense;
}

.table-row { cursor: pointer; }

.inline-label { display: inline !important; }

.checkbox-lg {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    padding: 10px;
}

/* Dashboard socket cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.unit-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid var(--tblr-border-color, #e6e7e9);
    overflow: hidden;
}

.unit-header {
    border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connector-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.socket-box {
    border-radius: 8px;
    padding: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.05);
    position: relative;
    color: #fff;
}

.state-available  { background-color: #52a447; }
.state-preparing  { background-color: #4a90e2; }
.state-charging   { background-color: #3b5998; }
.state-reserved   { background-color: #8e44ad; }
.state-finishing  { background-color: #d35400; }
.state-faulted    { background-color: #c0392b; }
.state-unavailable{ background-color: #7f8c8d; }

.socket-info-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 5px;
}

.status-text-big {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    letter-spacing: 1px;
}

.current-charge-data {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(0,0,0,.25);
    border-radius: 5px;
    color: #fff;
}

@keyframes soft-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.75; }
    100% { opacity: 1; }
}

.state-faulted { animation: soft-pulse 2s infinite; }
