/* Google Workspace Admin Style */
:root {
    --gw-blue: #1a73e8;
    --gw-blue-hover: #1557b0;
    --gw-blue-light: #e8f0fe;
    --gw-blue-600: #1757b0;
    --gw-blue-50: #e8f0fe;
    --gw-blue-200: #aecbfa;
    --gw-blue-700: #1557b0;
    --gw-blue-800: #0d47a1;
    --gw-gray-50: #fafafa;
    --gw-gray-100: #f1f3f4;
    --gw-gray-200: #e8eaed;
    --gw-gray-300: #dadce0;
    --gw-gray-400: #bdc1c6;
    --gw-gray-500: #9aa0a6;
    --gw-gray-600: #80868b;
    --gw-gray-700: #5f6368;
    --gw-gray-800: #3c4043;
    --gw-gray-900: #202124;
    --gw-white: #ffffff;
    --gw-red: #ea4335;
    --gw-red-600: #d93025;
    --gw-yellow: #fbbc04;
    --gw-green: #34a853;
    --gw-green-50: #e6f4ea;
    --gw-green-200: #a8dab5;
    --gw-green-600: #137333;
    --gw-green-700: #0f9d58;
    --gw-orange-50: #fff3e0;
    --gw-orange-light: #fff3e0;
    --gw-orange: #ff9800;
    --gw-orange-500: #ff9800;
    --gw-orange-600: #f57c00;
    --gw-purple-50: #f3e5f5;
    --gw-purple-500: #9c27b0;
    --gw-purple-600: #7b1fa2;
    --gw-sidebar-width: 280px;
    --gw-header-height: 64px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: var(--gw-gray-50) !important;
    color: var(--gw-gray-800) !important;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Utility: visually disable action buttons/links */
.gw-disabled-action {
    opacity: 0.45;
    pointer-events: none;
}

/* Header Styling */
.gw-header {
    background-color: var(--gw-white);
    border-bottom: 1px solid var(--gw-gray-900);
    height: var(--gw-header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gw-header .gw-logo {
    display: flex;
    align-items: center;
    margin-right: 24px;
    text-decoration: none;
    color: var(--gw-gray-700);
}

.gw-header .gw-logo i {
    font-size: 24px;
    margin-right: 12px;
    color: var(--gw-blue);
}

.gw-header .gw-logo-text {
    font-size: 22px;
    font-weight: 400;
    color: var(--gw-gray-700);
}

.gw-header .gw-search {
    flex: 1;
    max-width: 720px;
    margin: 0 40px;
}

.gw-header .gw-search input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--gw-gray-300);
    border-radius: 8px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    background: var(--gw-white);
    position: relative;
}

.gw-header .gw-search {
    position: relative;
}

.gw-header .gw-search::before {
    content: "🔍";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gw-gray-500);
    z-index: 1;
}

.gw-header .gw-search input:focus {
    outline: none;
    border-color: var(--gw-blue);
    box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.3);
}

.gw-header .gw-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gw-header .gw-user {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gw-white);
    font-weight: 500;
    cursor: pointer;
}

/* Sidebar Styling */
.gw-sidebar {
    position: fixed;
    left: 0;
    top: var(--gw-header-height);
    width: var(--gw-sidebar-width);
    height: calc(100vh - var(--gw-header-height));
    background-color: var(--gw-white);
    border-right: 1px solid var(--gw-gray-200);
    overflow-y: auto;
    z-index: 999;
}

.gw-sidebar .gw-nav {
    padding: 8px;
}

.gw-sidebar .gw-nav-item {
    margin-bottom: 0px;
}

.gw-sidebar .gw-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--gw-gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.15s ease;
}

.gw-sidebar .gw-nav-link:hover {
    background-color: var(--gw-gray-100);
    color: var(--gw-gray-800);
}

.gw-sidebar .gw-nav-link.active {
    background-color: var(--gw-blue-light);
    color: var(--gw-blue);
    font-weight: 500;
}

.gw-sidebar .gw-nav-link i {
    margin-right: 12px;
    font-size: 20px;
    width: 20px;
    text-align: center;
}

/* Submenu styling */
.gw-submenu {
    margin-left: 32px;
    margin-top: 4px;
}

.gw-submenu .gw-nav-link {
    padding: 8px 16px;
    font-size: 13px;
}

.gw-submenu .gw-nav-link i {
    margin-right: 10px;
    width: 16px;
    font-size: 16px;
}

/* Nested submenu (2+ levels) */
.gw-submenu .gw-submenu {
    margin-left: 16px;
    margin-top: 2px;
}

.gw-submenu .gw-submenu .gw-nav-link {
    font-size: 12.5px;
    padding: 7px 14px;
}

/* Main Content */
.gw-main {
    margin-left: var(--gw-sidebar-width);
    margin-top: var(--gw-header-height);
    padding: 24px;
    min-height: calc(100vh - var(--gw-header-height));
    background-color: var(--gw-white);
}

/* Breadcrumb */
.gw-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--gw-gray-600);
}

.gw-breadcrumb a {
    color: var(--gw-blue);
    text-decoration: none;
}

.gw-breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.gw-page-header {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gw-page-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--gw-gray-800);
    margin: 0 0 8px 0;
}

.gw-page-subtitle {
    font-size: 14px;
    color: var(--gw-gray-600);
    margin: 0;
}

/* Cards */
.gw-card {
    background-color: var(--gw-white);
    border: 1px solid var(--gw-gray-200);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gw-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gw-gray-200);
}

.gw-card-content {
    padding: 24px;
}

.gw-card-body {
    padding: 0;
}

.gw-card-footer {
    padding: 12px 16px;
    background-color: var(--gw-gray-50);
    border-top: 1px solid var(--gw-gray-200);
    font-size: 12px;
}

.gw-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--gw-gray-800);
    margin: 0;
}

/* Metric Cards - for GSC Details and Dashboard */
.gw-metric-card {
    background-color: var(--gw-white);
    border: 1px solid var(--gw-gray-200);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 100px;
}

.gw-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.gw-metric-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.gw-metric-value {
    font-size: 32px;
    font-weight: 400;
    color: var(--gw-gray-800);
    margin-bottom: 4px;
    line-height: 1.2;
}

.gw-metric-label {
    font-size: 14px;
    color: var(--gw-gray-600);
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-weight: 500;
}

.gw-metric-period {
    font-size: 12px;
    color: var(--gw-gray-500);
    font-weight: 400;
}

.gw-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
}

.gw-metric-icon i {
    font-size: 20px;
}

/* Form Controls */
.gw-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-gray-700);
}

.gw-form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gw-gray-900);
    background-color: var(--gw-white);
    border: 1px solid var(--gw-gray-300);
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gw-form-control:focus {
    border-color: var(--gw-blue);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.gw-form-control:disabled {
    background-color: var(--gw-gray-100);
    opacity: 1;
}

/* Buttons */
.gw-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 8px;
}

.gw-btn-primary {
    background-color: var(--gw-blue);
    color: var(--gw-white);
}

.gw-btn-primary:hover {
    background-color: var(--gw-blue-hover);
    color: var(--gw-white);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gw-btn-secondary {
    background-color: var(--gw-gray-100);
    color: var(--gw-gray-700);
    border: 1px solid var(--gw-gray-300);
}

.gw-btn-secondary:hover {
    background-color: var(--gw-gray-200);
    color: var(--gw-gray-800);
    border-color: var(--gw-gray-400);
}

.gw-btn-orange {
    background-color: var(--gw-orange);
    color: white;
    border: 1px solid var(--gw-orange-600);
}

.gw-btn-orange:hover {
    background-color: var(--gw-orange-600);
    color: white;
    border-color: var(--gw-orange-600);
    text-decoration: none;
}

.gw-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.gw-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.gw-btn-outline {
    background-color: transparent;
    color: var(--gw-blue);
    border: 1px solid var(--gw-gray-300);
}

.gw-btn-outline:hover {
    background-color: var(--gw-blue-light);
    border-color: var(--gw-blue);
}

/* Aliases used across templates */
.gw-btn-outline-primary {
    background-color: transparent;
    color: var(--gw-blue);
    border: 1px solid var(--gw-gray-300);
}

.gw-btn-outline-primary:hover {
    background-color: var(--gw-blue-light);
    border-color: var(--gw-blue);
}

/* Text helpers used across templates */
.gw-text-primary {
    color: var(--gw-gray-800);
}

.gw-text-secondary {
    color: var(--gw-gray-600);
}

/* Progress used in SEO dashboard */
.gw-progress {
    width: 120px;
    height: 8px;
    background-color: var(--gw-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.gw-progress-bar {
    height: 100%;
    border-radius: 999px;
    background-color: var(--gw-blue);
}

.gw-progress-success {
    background-color: var(--gw-green);
}

.gw-progress-warning {
    background-color: var(--gw-orange);
}

.gw-progress-danger {
    background-color: var(--gw-red);
}

.gw-progress-secondary {
    background-color: var(--gw-gray-400);
}

.gw-btn-ghost {
    background-color: transparent;
    color: var(--gw-gray-600);
    border: none;
}

.gw-btn-ghost:hover {
    background-color: var(--gw-gray-100);
    color: var(--gw-gray-800);
}

/* Table Styling */
.gw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.gw-table thead {
    background-color: #f8f9fa;
}

.gw-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #dadce0;
    background-color: #f8f9fa;
    color: #5f6368;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
    height: 48px;
}

.gw-table th::after {
    display: none;
}

.gw-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    color: var(--gw-gray-800);
    vertical-align: middle;
    height: 48px;
}

/* Mobile expanded details row should not reserve fixed row height */
.gw-table tr.site-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /plugins/list mobile expanded details row */
.gw-table tr.plugin-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /themes/list mobile expanded details row */
.gw-table tr.theme-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /backlink mobile expanded details row */
.gw-table tr.backlink-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /autopost (overview) mobile expanded details row */
.gw-table tr.autopost-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /autopost config list expanded details row */
.gw-table tr.autopost-config-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /autopost posts expanded details row */
.gw-table tr.post-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /autopost trends expanded details row */
.gw-table tr.tr-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /trends mobile expanded details row */
.gw-table tr.trends-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /scraper mobile expanded details row */
.gw-table tr.scraper-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /gsc mobile expanded details row */
.gw-table tr.gsc-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /ga mobile expanded details row */
.gw-table tr.ga-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /seo mobile expanded details row */
.gw-table tr.seo-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /ads/list mobile expanded details row */
.gw-table tr.ads-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /ads/adsense/list mobile expanded details row */
.gw-table tr.adsense-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /adsense/ads mobile expanded details row */
.gw-table tr.adsense-ads-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /adsense/sites mobile expanded details row */
.gw-table tr.adsense-sites-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /adsense/reports/account mobile expanded details row */
.gw-table tr.adsense-reports-account-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /bunnycdn/cdn mobile expanded details row */
.gw-table tr.bunnycdn-cdn-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /bunnycdn/dns mobile expanded details row */
.gw-table tr.bunnycdn-dns-zone-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /bunnycdn/shield-event-logs expanded details row */
.gw-table tr.shield-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /admin/settings/storage expanded details row */
.gw-table tr.storage-settings-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* /settings/servers expanded details row */
.gw-table tr.servers-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* Bootstrap collapse on table rows needs display overrides (/settings/servers) */
.gw-table tr.servers-row-details.collapse:not(.show) {
    display: none;
}
.gw-table tr.servers-row-details.collapse.show {
    display: table-row;
}
.gw-table tr.servers-row-details.collapsing {
    display: table-row;
}

@media (min-width: 768px) {
    .gw-table tr.servers-row-details {
        display: none !important;
    }
}

.servers-row-toggle i {
    transition: transform 0.15s ease;
}
.servers-row-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Bootstrap collapse on table rows needs display overrides (/admin/settings/storage) */
.gw-table tr.storage-settings-row-details.collapse:not(.show) {
    display: none;
}
.gw-table tr.storage-settings-row-details.collapse.show {
    display: table-row;
}
.gw-table tr.storage-settings-row-details.collapsing {
    display: table-row;
}

@media (min-width: 768px) {
    .gw-table tr.storage-settings-row-details {
        display: none !important;
    }
}

/* /logs expanded details row */
.gw-table tr.logs-row-details td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    vertical-align: top;
}

/* Bootstrap collapse on table rows needs display overrides (/logs) */
.gw-table tr.logs-row-details.collapse:not(.show) {
    display: none;
}
.gw-table tr.logs-row-details.collapse.show {
    display: table-row;
}
.gw-table tr.logs-row-details.collapsing {
    display: table-row;
}

/* Bootstrap collapse on table rows needs display overrides */
.gw-table tr.shield-row-details.collapse:not(.show) {
    display: none;
}
.gw-table tr.shield-row-details.collapse.show {
    display: table-row;
}
.gw-table tr.shield-row-details.collapsing {
    display: table-row;
}

/* Generic mobile stacked tables (all pages) */
.gw-table tr.gw-mobile-details-row td {
    height: auto;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
    vertical-align: top;
}

.gw-mobile-details {
    padding: 10px 16px;
    background: var(--gw-gray-50);
    border-top: 1px solid #f1f3f4;
}

.gw-mobile-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e8eaed;
}

.gw-mobile-detail-row:last-child {
    border-bottom: 0;
}

.gw-mobile-detail-key {
    color: var(--gw-gray-600);
    font-size: 12.5px;
    font-weight: 500;
    flex: 0 0 42%;
}

.gw-mobile-detail-value {
    color: var(--gw-gray-800);
    font-size: 13px;
    text-align: right;
    flex: 1 1 auto;
    word-break: break-word;
}

.gw-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* /logs mobile chevron + long details wrapping */
.logs-table-container {
    scrollbar-gutter: stable;
}

@media (max-width: 767.98px) {
    .logs-table-container {
        padding-right: 12px;
    }
    #logs-table th:nth-child(2),
    #logs-table td:nth-child(2) {
        width: auto !important;
    }
}

.logs-time-mobile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    padding-right: 34px;
    cursor: pointer;
}
.logs-time-mobile::after {
    content: '▾';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    color: var(--gw-gray-800);
    background: var(--gw-gray-100);
    border: 1px solid var(--gw-gray-200);
    border-radius: 6px;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.15s ease;
}
.gw-table tr.logs-row-main.is-open .logs-time-mobile::after {
    transform: translateY(-50%) rotate(180deg);
}
.logs-time-mobile:focus-visible {
    outline: 2px solid rgba(26, 115, 232, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}
.logs-time-desktop {
    display: block;
}

@media (max-width: 767.98px) {
    .gw-table th.logs-desktop-only,
    .gw-table td.logs-desktop-only {
        display: none;
    }
    .logs-time-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .logs-time-mobile {
        display: none;
    }
    .gw-table tr.logs-row-details {
        display: none !important;
    }
}

.logs-pre {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Checkbox styling untuk table */
.gw-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #dadce0;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.gw-table input[type="checkbox"]:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.gw-table input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -1px;
    left: 2px;
}

/* Table container styling */
.gw-table-container {
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.gw-table-container .gw-table {
    border: none;
    margin: 0;
}

/* Checkbox Components */
.gw-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #dadce0;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    position: relative;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.gw-checkbox:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.gw-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -2px;
    left: 2px;
}

/* Days of Week Button Checkboxes - FORCE OVERRIDE ALL STYLES */
.day-btn {
    transition: all 0.15s ease !important;
    margin: 2px !important;
    border: 2px solid !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.day-btn input[type="checkbox"] {
    pointer-events: none !important;
    display: none !important;
}

.day-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
}

.day-btn.gw-btn-secondary {
    background-color: #f1f3f4 !important;
    border-color: #dadce0 !important;
    color: #5f6368 !important;
}

.day-btn.gw-btn-primary {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: white !important;
    font-weight: 600 !important;
}

.day-btn.gw-btn-primary:hover {
    background-color: #1557b0 !important;
    border-color: #1557b0 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Day Checkbox Button Style - More reliable than traditional checkboxes */
.gw-day-checkbox {
    margin-bottom: 8px !important;
}

.gw-day-button {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid var(--gw-gray-300) !important;
    border-radius: 8px !important;
    background-color: var(--gw-white) !important;
    color: var(--gw-gray-700) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    position: relative !important;
}

.gw-day-button:hover {
    border-color: var(--gw-blue) !important;
    background-color: var(--gw-blue-50) !important;
    color: var(--gw-blue) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15) !important;
}

.gw-day-button.active {
    border-color: var(--gw-blue) !important;
    background-color: var(--gw-blue) !important;
    color: var(--gw-white) !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.gw-day-button.active:hover {
    background-color: var(--gw-blue-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3) !important;
}

.gw-day-button .gw-check-icon {
    color: var(--gw-white) !important;
    font-size: 16px !important;
}

.gw-day-button .gw-uncheck-icon {
    color: var(--gw-gray-400) !important;
    font-size: 16px !important;
}

.gw-day-button.active .gw-uncheck-icon {
    display: none !important;
}

.gw-day-button.active .gw-check-icon {
    display: inline !important;
}

/* Force override any conflicting styles */
#weekly-options input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

#days-summary {
    padding: 8px 12px !important;
    background-color: var(--gw-blue-50) !important;
    border: 1px solid var(--gw-blue-200) !important;
    border-radius: 6px !important;
    margin-top: 12px !important;
}

/* Form Checkbox Components - Enhanced with important overrides */
.gw-form-checkbox {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
    background-color: var(--gw-white) !important;
}

.gw-form-checkbox:hover {
    background-color: var(--gw-blue-50) !important;
    border-color: var(--gw-blue-200) !important;
}

.gw-checkbox-input {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid var(--gw-gray-300) !important;
    border-radius: 4px !important;
    background-color: var(--gw-white) !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 !important;
    margin-right: 12px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
}

.gw-checkbox-input:hover {
    border-color: var(--gw-blue) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.1) !important;
}

.gw-checkbox-input:checked {
    background-color: var(--gw-blue) !important;
    border-color: var(--gw-blue) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3) !important;
}

.gw-checkbox-input:checked::after {
    content: '✓' !important;
    color: var(--gw-white) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 1px !important;
    left: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
}

.gw-checkbox-input:focus {
    outline: none !important;
    border-color: var(--gw-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2) !important;
}

.gw-checkbox-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gw-gray-700) !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1.3 !important;
    transition: all 0.15s ease !important;
    z-index: 1 !important;
}

.gw-form-checkbox:hover .gw-checkbox-label {
    color: var(--gw-blue) !important;
}

.gw-checkbox-input:checked + .gw-checkbox-label {
    color: var(--gw-blue) !important;
    font-weight: 600 !important;
}

/* Enhanced active state for checked checkbox container */
.gw-form-checkbox:has(.gw-checkbox-input:checked) {
    background-color: var(--gw-blue-50) !important;
    border: 1px solid var(--gw-blue-200) !important;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.1) !important;
}

/* Special styling for days of week checkboxes */
#weekly-options .gw-form-checkbox {
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    background-color: var(--gw-white) !important;
}

#weekly-options .gw-checkbox-input:checked + .gw-checkbox-label {
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Force override any conflicting styles */
#weekly-options input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.gw-form-group {
    margin-bottom: 20px;
}

.gw-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-gray-700);
    margin-bottom: 8px;
}

.gw-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gw-gray-300);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--gw-white);
    transition: border-color 0.15s ease;
}

.gw-input:focus {
    outline: none;
    border-color: var(--gw-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.gw-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gw-gray-300);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--gw-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Status badges */
.gw-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Components */
.gw-modal-content {
    background-color: var(--gw-white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(60, 64, 67, 0.3);
}

.gw-modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid var(--gw-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gw-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--gw-gray-800);
    margin: 0;
}

.gw-modal-body {
    padding: 24px;
}

.gw-modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid var(--gw-gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.gw-btn-close {
    background: none;
    border: none;
    color: var(--gw-gray-500);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gw-btn-close:hover {
    color: var(--gw-gray-700);
    background-color: var(--gw-gray-100);
    border-radius: 4px;
}

/* Form Groups */
.gw-form-group {
    margin-bottom: 20px;
}

.gw-form-text {
    font-size: 12px;
    color: var(--gw-gray-600);
    margin-top: 4px;
}

/* Alert Components */
.gw-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-alert-danger {
    background-color: var(--gw-red-50, #fef2f2);
    border: 1px solid var(--gw-red-200, #fecaca);
    color: var(--gw-red-800, #991b1b);
}

.gw-badge-success {
    background-color: var(--gw-green);
    color: var(--gw-white);
}

.gw-badge-warning {
    background-color: var(--gw-yellow);
    color: var(--gw-gray-800);
}

.gw-badge-danger {
    background-color: var(--gw-red);
    color: var(--gw-white);
}

.gw-badge-info {
    background-color: var(--gw-blue);
    color: var(--gw-white);
}

.gw-badge-primary {
    background-color: var(--gw-blue);
    color: var(--gw-white);
}

.gw-badge-secondary {
    background-color: var(--gw-gray-200);
    color: var(--gw-gray-700);
}

/* Responsive */
@media (max-width: 768px) {
    .gw-sidebar {
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .gw-sidebar.show {
        transform: translateX(0);
    }
    
    .gw-main {
        margin-left: 0;
        padding: 14px;
        background-color: var(--gw-white);
    }
    
    .gw-header .gw-search {
        display: none;
    }

    /* Mobile header: hide action buttons (keep user menu) */
    .gw-header .gw-actions > button.gw-btn {
        display: none;
    }

    /* Sidebar nav spacing on small screens */
    .gw-sidebar .gw-nav {
        padding: 10px;
    }

    .gw-sidebar .gw-nav-link {
        padding: 10px 14px;
        font-size: 15px;
    }

    .gw-submenu {
        margin-left: 16px;
    }

    .gw-submenu .gw-submenu {
        margin-left: 12px;
    }

    /* Page header: stack title + actions */
    .gw-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gw-page-header .gw-page-title {
        margin-bottom: 2px;
    }

    .gw-page-header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Mobile sidebar backdrop */
.gw-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--gw-header-height) 0 0 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 998;
}

.gw-sidebar-backdrop.show {
    display: block;
}

body.sidebar-open {
    overflow: hidden;
}

/* Custom CSS untuk complement Bootstrap */
:root {
    --wp-blue: #0073aa;
    --wp-orange: #ff6900;
    --wp-grey: #f0f0f0;
    --sidebar-width: 280px;
}

/* Base layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

.d-flex {
    display: flex !important;
}

/* Container for sidebar and main content */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar toggle button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sidebar navigation styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: var(--wp-blue);
    color: white !important;
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.sidebar .nav-link i {
    font-size: 1.1em;
    width: 20px;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    padding: 20px 30px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
    width: calc(100% - 250px);
    box-sizing: border-box;
    overflow: visible !important;
}

/* Cards with modern styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--wp-blue) 0%, #005a87 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 20px;
}

.card-header h3, .card-header h4, .card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Buttons with modern styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wp-blue) 0%, #005a87 100%);
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, var(--wp-orange) 100%);
    box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 8px rgba(23,162,184,0.3);
}

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

/* Table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 15px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(0,115,170,0.05);
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #f1f3f4;
}

/* Status indicators */
.status-online {
    color: #28a745;
    font-weight: 600;
}

.status-offline {
    color: #dc3545;
    font-weight: 600;
}

.status-updating {
    color: #ffc107;
    font-weight: 600;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-error {
    color: #dc3545;
    font-weight: 600;
}

.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-warning {
    color: #fd7e14;
    font-weight: 600;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Logs toolbar refinements */
.logs-toolbar .form-select, .logs-toolbar .form-control {
        box-shadow: none;
}
.logs-toolbar .min-w-160 { min-width:160px; }
.logs-toolbar .min-w-140 { min-width:140px; }
@media (max-width: 992px){
    .logs-toolbar .min-w-160, .logs-toolbar .min-w-140 { min-width:120px; }
    .logs-toolbar { row-gap: .5rem; }
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wp-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,115,170,0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--wp-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Plugin/Theme cards */
.plugin-card, .theme-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin-bottom: 20px;
}

.plugin-card:hover, .theme-card:hover {
    transform: translateY(-3px);
}

.plugin-card h4, .theme-card h4 {
    color: var(--wp-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Alert customization */
.alert {
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Top navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.95) !important;
    z-index: 1030 !important;
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 60px 15px 15px 15px; /* Extra top padding for toggle button */
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important;
    }
    
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Smooth transitions for all screen sizes */
@media (prefers-reduced-motion: no-preference) {
    .sidebar,
    .main-content {
        transition: all 0.3s ease;
    }
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* (Removed dark mode auto inversion) */

/* Force light background (override dark-mode) */
body.bg-light, .main-content.bg-light {
    background-color: #f8f9fa !important;
    background: #f8f9fa !important;
}

/* Print styles */
@media print {
    .sidebar, .navbar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #23282d;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Status indicators */
.status-online {
    color: #28a745;
    font-weight: bold;
}

.status-offline {
    color: #dc3545;
    font-weight: bold;
}

.status-updating {
    color: #ffc107;
    font-weight: bold;
}

/* Grid layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
}

.col-2 {
    flex: 0 0 50%;
}

.col-3 {
    flex: 0 0 33.333%;
}

.col-4 {
    flex: 0 0 25%;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

/* Server Management: compact stats cards on mobile */
.servers-stats-grid {
    margin-bottom: 1rem;
}

.servers-stats-card {
    padding: 20px;
    text-align: center;
}

.servers-stats-number {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.1;
}

.servers-stats-label {
    font-size: 14px;
    color: var(--gw-gray-600);
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .servers-stats-grid {
        margin-bottom: 12px;
    }

    .servers-stats-card {
        padding: 12px;
    }

    .servers-stats-number {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .servers-stats-label {
        font-size: 12px;
    }
}

/* Dashboard: compact summary cards on mobile */
.dashboard-summary-card {
    padding: 16px;
}

.dashboard-summary-number {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 4px;
    line-height: 1.1;
}

.dashboard-summary-subnumber {
    font-size: 14px;
}

.dashboard-summary-label {
    font-size: 14px;
    color: var(--gw-gray-600);
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.dashboard-summary-iconbox {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .dashboard-summary-card {
        padding: 12px;
        text-align: center;
    }

    .dashboard-summary-number {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .dashboard-summary-subnumber {
        font-size: 12px;
    }

    .dashboard-summary-label {
        font-size: 12px;
        justify-content: center;
    }

    .dashboard-summary-iconbox {
        display: none;
    }
}

/* GSC: compact stats cards on mobile */
.gsc-stats-card {
    padding: 20px;
    text-align: center;
}

.gsc-stats-number {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.1;
}

.gsc-stats-label {
    font-size: 14px;
    color: var(--gw-gray-600);
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .gsc-stats-card {
        padding: 12px;
    }

    .gsc-stats-number {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .gsc-stats-label {
        font-size: 12px;
    }
}

/* GA: compact stats cards on mobile */
.ga-stats-card {
    padding: 20px;
}

/* GA: tidy header action buttons on mobile */
.ga-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .ga-header-actions {
        width: 100%;
        justify-content: stretch;
        gap: 8px !important;
    }

    .ga-header-actions .gw-btn {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.15;
        white-space: normal;
    }

    .ga-header-actions .gw-btn i {
        margin-right: 6px !important;
    }
}

.ga-stats-label {
    font-size: 14px;
    color: var(--gw-gray-600);
    margin-bottom: 4px;
    line-height: 1.2;
}

.ga-stats-number {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.ga-stats-icon {
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-stats-icon i {
    font-size: 32px;
}

@media (max-width: 767.98px) {
    .ga-stats-card {
        padding: 12px;
        text-align: center;
    }

    .ga-stats-label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .ga-stats-number {
        font-size: 22px;
    }

    .ga-stats-icon {
        display: none;
    }
}

/* AdSense /adsense/ads: tidy header actions on mobile */
.adsense-ads-header-actions {
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .adsense-ads-header-actions {
        width: 100%;
        gap: 8px;
    }

    .adsense-ads-header-actions .gw-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.15;
        white-space: normal;
    }

    .adsense-ads-header-actions .gw-btn i {
        margin-right: 6px;
    }
}

/* /htaccess/manage: mobile paired-row details */
.htaccess-row-toggle i {
    transition: transform 0.2s ease;
}

.htaccess-row-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.htaccess-row-details td {
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top;
}

.htaccess-row-details .gw-mobile-details {
    padding: 12px 14px;
}

.htaccess-row-details.collapse:not(.show) {
    display: none;
}

.htaccess-row-details.collapse.show,
.htaccess-row-details.collapsing {
    display: table-row;
}

@media (min-width: 768px) {
    .htaccess-row-details {
        display: none !important;
    }
}

/* /nginx/manage: mobile paired-row details */
.nginx-row-toggle i {
    transition: transform 0.2s ease;
}

.nginx-row-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.nginx-row-details td {
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top;
}

.nginx-row-details .gw-mobile-details {
    padding: 12px 14px;
}

.nginx-row-details.collapse:not(.show) {
    display: none;
}

.nginx-row-details.collapse.show,
.nginx-row-details.collapsing {
    display: table-row;
}

@media (min-width: 768px) {
    .nginx-row-details {
        display: none !important;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: 5px 0;
    }
    
    .table {
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Modal styling for Google Workspace consistency */
.modal-dialog {
    border-radius: 12px !important;
    border: none !important;
}

.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

.modal-header {
    padding: 24px 24px 16px 24px !important;
    border-bottom: 1px solid var(--gw-gray-200) !important;
}

.modal-body {
    padding: 16px 24px !important;
}

.modal-footer {
    padding: 16px 24px 24px 24px !important;
    border-top: 1px solid var(--gw-gray-200) !important;
}

.modal-title {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--gw-gray-900) !important;
}

/* Custom modal backdrop */
.modal-backdrop {
    background-color: rgba(32, 33, 36, 0.6) !important;
}

/* Google Workspace Form Styling */
.gw-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-top: 24px;
}

.gw-content-main {
    min-width: 0;
}

.gw-content-sidebar {
    min-width: 0;
}

.gw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.gw-form-field {
    display: flex;
    flex-direction: column;
}

.gw-form-field-full {
    grid-column: 1 / -1;
}

.gw-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-gray-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-form-control {
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--gw-gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--gw-white);
    font-family: inherit;
}

.gw-form-control:focus {
    outline: none;
    border-color: var(--gw-blue);
    box-shadow: 0 0 0 3px var(--gw-blue-50);
}

.gw-form-control[type="textarea"],
textarea.gw-form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.5;
}

.gw-form-help {
    font-size: 12px;
    color: var(--gw-gray-600);
    margin-top: 4px;
}

.gw-input-group {
    display: flex;
    align-items: center;
}

.gw-input-group .gw-form-control {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.gw-input-group .gw-btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
    height: 48px;
    padding: 0 12px;
}

.gw-form-divider {
    height: 1px;
    background: var(--gw-gray-200);
    margin: 24px 0;
}

.gw-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.gw-form-actions-left {
    display: flex;
    gap: 12px;
}

.gw-form-actions-right {
    display: flex;
    gap: 12px;
}

/* Card Headers with Color */
.gw-card-header-info {
    background: linear-gradient(135deg, var(--gw-blue) 0%, var(--gw-blue-600) 100%);
    color: var(--gw-white);
}

.gw-card-header-success {
    background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-green-600) 100%);
    color: var(--gw-white);
}

.gw-card-header-info h6,
.gw-card-header-success h6 {
    color: var(--gw-white);
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Step Guide Styling */
.gw-step-guide {
    position: relative;
}

.gw-step-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.gw-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 35px;
    bottom: -20px;
    width: 2px;
    background: var(--gw-gray-200);
}

.gw-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gw-blue) 0%, var(--gw-blue-600) 100%);
    color: var(--gw-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.gw-step-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gw-gray-600);
}

.gw-step-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gw-gray-800);
    font-weight: 500;
}

.gw-step-content code {
    background: var(--gw-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--gw-gray-800);
    font-family: 'Roboto Mono', monospace;
}

/* Feature List */
.gw-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gw-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gw-gray-700);
}

.gw-feature-list li:last-child {
    margin-bottom: 0;
}

/* Alert Styling */
.gw-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gw-alert-warning {
    background: #fef7e0;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.gw-alert-warning i {
    color: #f59e0b;
}

/* Button Info Variant */
.gw-btn-info {
    background: var(--gw-blue);
    color: var(--gw-white);
    border: 1px solid var(--gw-blue);
}

.gw-btn-info:hover {
    background: var(--gw-blue-hover);
    border-color: var(--gw-blue-hover);
    color: var(--gw-white);
}

/* Site Details Specific Styles */
.gw-action-group {
    border: 1px solid var(--gw-gray-200);
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    background: var(--gw-white);
}

.gw-action-group-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.gw-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gw-action-buttons .gw-btn {
    justify-content: flex-start;
}

.gw-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gw-blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.gw-metric-icon i {
    font-size: 18px;
    color: var(--gw-blue);
}

.gw-metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gw-gray-800);
    display: block;
    line-height: 1.3;
}

.gw-metric-content {
    min-height: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.gw-metric-subtitle {
    font-size: 9px;
    color: var(--gw-gray-500);
    margin-top: 0px;
    line-height: 1;
}

.gw-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gw-status-success {
    background: var(--gw-green-50);
    color: var(--gw-green-600);
}

.gw-status-danger {
    background: #fce8e6;
    color: var(--gw-red-600);
}

.gw-status-warning {
    background: var(--gw-orange-50);
    color: var(--gw-orange-600);
}

.gw-status-secondary {
    background: var(--gw-gray-100);
    color: var(--gw-gray-600);
}

.gw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--gw-gray-500);
}

.gw-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gw-gray-200);
    border-top: 2px solid var(--gw-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gw-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gw-gray-500);
}

.gw-empty-state i {
    font-size: 48px;
    color: var(--gw-gray-300);
    margin-bottom: 16px;
}

.gw-empty-state h6 {
    font-size: 16px;
    font-weight: 500;
    color: var(--gw-gray-600);
    margin-bottom: 8px;
}

.gw-empty-state p {
    font-size: 14px;
    color: var(--gw-gray-500);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gw-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gw-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gw-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gw-form-actions-left,
    .gw-form-actions-right {
        justify-content: center;
    }
    
    .gw-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gw-action-buttons .gw-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

/* Info Group Styling for GSC Details and other pages */
.gw-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gw-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gw-info-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-gray-600);
}

.gw-info-value {
    font-size: 14px;
    color: var(--gw-gray-800);
    font-weight: 400;
}

/* Alert styling for GSC error states */
.gw-alert {
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.gw-alert-danger {
    background-color: rgba(234, 67, 53, 0.05);
    border: 1px solid rgba(234, 67, 53, 0.2);
}

.gw-btn-outline-danger {
    background-color: transparent;
    color: var(--gw-red);
    border: 1px solid var(--gw-red);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gw-btn-outline-danger:hover {
    background-color: var(--gw-red);
    color: white;
}

/* Troubleshooting Section Styles */
.gw-troubleshoot-item {
    padding: 12px;
    background-color: var(--gw-gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--gw-blue-200);
    margin-bottom: 12px;
}

.gw-troubleshoot-item h6 {
    color: var(--gw-gray-800);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.gw-troubleshoot-item ul {
    margin: 0;
    padding-left: 16px;
}

.gw-troubleshoot-item li {
    margin-bottom: 4px;
    line-height: 1.4;
}

#connection-issues-alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}