/**
 * Admin Styles - Swiss Business Suite
 * @package Swiss_Business_Suite
 */

/* ── Toggle Switch (Settings page) ── */
.swisbs-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.swisbs-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.swisbs-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}
.swisbs-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
.swisbs-toggle-switch input:checked + .swisbs-toggle-slider {
    background-color: #00a32a;
}
.swisbs-toggle-switch input:checked + .swisbs-toggle-slider:before {
    transform: translateX(26px);
}

/* ── Dashboard stats cards ── */
.swisbs-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.swisbs-dashboard-stats .card,
.swisbs-stats .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}
.swisbs-dashboard-stats .card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Admin tables ── */
.wrap table.wp-list-table {
    border-collapse: collapse;
}
.wrap table.wp-list-table td,
.wrap table.wp-list-table th {
    padding: 12px 10px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}
.wrap table.wp-list-table th {
    white-space: nowrap;
    font-weight: 600;
}
.wrap .form-table th {
    font-weight: 600;
}
