/* Argus Theme - Extracted from sample designs */

:root {
    --argus-blue: #0044CC;
    --argus-blue-hover: #003399;
    --text-dark: #0A0E27;
    --white: #FFFFFF;
    --sidebar-bg: #12173A;
    --sidebar-hover: #252C6A;
    --sidebar-width: 260px;
    --table-header: #F9FAFB;
    --table-hover: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Light mode (default) */
    --bg-primary: #FFFFFF;
    --bg-header-footer: #EFEAE6;
    --text-primary: #0A0E27;
    --text-inverse: #0A0E27;
    /* Activity chart: work = header (light), personal = header (dark) */
    --chart-work-bar: #EFEAE6;
    --chart-personal-bar: #0A0E27;
}

[data-theme="dark"] {
    --bg-primary: #8DC4D2;
    --bg-header-footer: #0A0E27;
    --text-primary: #FFFFFF;
    --text-inverse: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Sidebar – no shadow at header/footer junctions; content has its own shadow */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-header-footer);
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

body.sidebar-collapsed {
    --sidebar-width: 70px;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    border-radius: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-inverse);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: transparent;
    opacity: 0.7;
}

.sidebar-toggle-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle {
    right: 50%;
    transform: translateX(50%);
}

.sidebar.collapsed .sidebar-toggle:hover {
    transform: translateX(50%) scale(1.1);
}

.sidebar .logo {
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.sidebar.collapsed .logo {
    padding: 10px;
}

.sidebar .logo img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-menu-section-title {
    display: none !important;
}

.sidebar.collapsed .nav-menu a span:not(.nav-icon):not(.nav-arrow) {
    display: none !important;
}

.sidebar.collapsed .nav-menu {
    align-items: center;
}

.sidebar.collapsed .nav-menu a {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .nav-submenu-items {
    display: none !important;
}

.logo {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    background: var(--bg-header-footer);
    position: sticky;
    top: 0;
    z-index: 10;
}

[data-theme="dark"] .logo {
    border-bottom: 1px solid rgba(10, 14, 39, 0.1);
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(1);
    transition: filter 0.3s ease;
    border-radius: 8px;
}

[data-theme="dark"] .logo img {
    filter: invert(0);
    border-radius: 8px;
}

.nav-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu-section {
    margin-bottom: 24px;
}

.nav-menu-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-inverse);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.nav-menu li {
    margin-bottom: 2px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-inverse);
    opacity: 0.8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease-out;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}



.nav-menu a:hover {
    background: rgba(10, 14, 39, 0.1);
    color: var(--text-inverse);
}

[data-theme="dark"] .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-inverse);
    font-weight: 600;
}

[data-theme="dark"] .nav-menu a.active {
    background: rgba(255, 255, 255, 0.08);
}

/* Submenu Styles */
.nav-submenu {
    position: relative;
}

.nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.nav-submenu-arrow {
    margin-left: auto;
    font-size: 16px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-submenu.open .nav-submenu-arrow {
    transform: rotate(90deg);
}

.nav-submenu-items {
    display: none;
    padding-left: 40px;
    list-style: none;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.nav-submenu.open .nav-submenu-items {
    display: block;
    max-height: 1000px;
}

.nav-submenu-items li {
    margin-bottom: 0;
}

.nav-submenu-items li a {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-submenu-items li a:hover {
    background: rgba(10, 14, 39, 0.08);
    padding-left: 20px;
}

[data-theme="dark"] .nav-submenu-items li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed .nav-submenu-arrow {
    display: none;
}

.sidebar.collapsed .nav-submenu-items {
    display: none !important;
}



.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    overflow-x: hidden;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Header – no shadow; only content area has shadow */
.top-header {
    background: var(--bg-header-footer);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .top-header {
    border-bottom: 1px solid rgba(10, 14, 39, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.3px;
}

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

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--argus-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.login-button:hover {
    background: var(--argus-blue-hover);
    color: var(--white);
}

.login-button svg {
    stroke: currentColor;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 24px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-inverse);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.theme-slider {
    background-color: rgba(255, 255, 255, 0.5);
}

input:checked+.theme-slider:before {
    transform: translateX(20px);
}

/* Content Area – recessed/sunken look: inset shadows on top, left and bottom */
.content {
    padding: 32px;
    background: var(--bg-primary);
    min-height: calc(100vh - 70px);
    max-width: 100%;
    box-sizing: border-box;
    box-shadow:
        inset 0 6px 12px -4px rgba(0, 0, 0, 0.1),
        inset 6px 0 12px -4px rgba(0, 0, 0, 0.08),
        inset 0 -4px 10px -4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .content {
    box-shadow:
        inset 0 8px 16px -4px rgba(0, 0, 0, 0.35),
        inset 8px 0 16px -4px rgba(0, 0, 0, 0.25),
        inset 0 -6px 12px -4px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(10, 14, 39, 0.1);
    padding: 12px 32px;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumb-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--text-primary);
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span:not(.breadcrumb-separator) {
    color: var(--text-primary);
    opacity: 0.9;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-primary);
    opacity: 0.4;
    user-select: none;
}

/* Footer – no shadow; content area has its own shadow */
footer {
    background: var(--bg-header-footer);
    color: var(--text-inverse);
    padding: 50px 32px 32px;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: background 0.3s ease, color 0.3s ease, margin-left 0.3s ease, width 0.3s ease;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-inverse);
}

.footer-brand p {
    color: var(--text-inverse);
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-location,
.footer-email {
    color: var(--text-inverse);
    opacity: 0.7;
    font-size: 13px;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-inverse);
}

.footer-section a {
    color: var(--text-inverse);
    opacity: 0.7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--text-inverse);
    opacity: 1;
    padding-left: 4px;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    opacity: 0.6;
    font-size: 13px;
    margin-top: 32px;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Elements - Common styles from örnek5-components.html */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(10, 14, 39, 0.2);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--text-primary);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    transform: scaleY(1);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

/* Header hamburger toggle (always visible) */
.header-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 4px 0 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-inverse);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.header-sidebar-toggle:hover {
    background: rgba(10, 14, 39, 0.1);
}

[data-theme="dark"] .header-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-sidebar-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {

    :root,
    body.sidebar-collapsed {
        --sidebar-width: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    .sidebar .sidebar-toggle {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .top-header {
        padding: 0 16px;
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        gap: 12px;
    }

    footer {
        margin-left: 0;
        width: 100%;
        padding: 50px 24px 32px;
    }

    .breadcrumb {
        padding: 12px 24px;
    }
}

/* User Menu */
.user-menu-container {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: transparent;
}

.user-menu:hover {
    background: rgba(10, 14, 39, 0.1);
}

[data-theme="dark"] .user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--argus-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-inverse);
    white-space: nowrap;
}

.user-menu-arrow {
    width: 16px;
    height: 16px;
    stroke: var(--text-inverse);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.user-menu-container.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-container.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--text-primary);
    opacity: 1;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--argus-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--text-primary);
    opacity: 0.1;
    margin: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    font-family: inherit;
}

.user-dropdown-item button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: inherit;
}

.user-dropdown-item:hover {
    background: rgba(10, 14, 39, 0.05);
}

[data-theme="dark"] .user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.user-dropdown-item-danger {
    color: #DC2626;
}

.user-dropdown-item-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .user-menu {
        padding: 6px;
    }
}

/* Auto Refresh Toggle */
.auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(10, 14, 39, 0.1);
    border-radius: 8px;
    margin-left: 16px;
}

[data-theme="dark"] .auto-refresh-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.auto-refresh-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-inverse);
    white-space: nowrap;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-inverse);
    flex-shrink: 0;
}

.auto-refresh-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.auto-refresh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auto-refresh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 22px;
}

.auto-refresh-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-inverse);
    transition: 0.3s;
    border-radius: 50%;
}

.auto-refresh-switch input:checked+.auto-refresh-slider {
    background-color: var(--argus-blue);
}

.auto-refresh-switch input:checked+.auto-refresh-slider:before {
    transform: translateX(18px);
}

/* Refresh Button: visible when auto-refresh is OFF, hidden when ON (see body.auto-refresh-on below) */
.refresh-icon-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--text-primary);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.refresh-icon-btn:hover,
.refresh-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.refresh-icon-btn svg,
.refresh-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Quick Stat with refresh button */
.quick-stat {
    position: relative;
}

/* Card with refresh button */
.card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .refresh-icon-btn,
.card-header .refresh-btn {
    margin-left: auto;
}

/* When header auto-refresh is ON, hide refresh icon buttons */
body.auto-refresh-on .refresh-icon-btn,
body.auto-refresh-on .refresh-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .auto-refresh-toggle {
        margin-left: 8px;
        padding: 4px 8px;
    }

    .auto-refresh-label {
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
    }
}

/* Auto-refresh styles */
body.auto-refresh-on .refresh-icon-btn {
    display: none !important;
}