/* Color Palette System */
:root {
    /* Primary Colors */
    --primary-color: hsl(234, 89.40%, 74.10%);
    --primary-light: hsl(234, 89%, 84%);
    --primary-dark: hsl(234, 89%, 64%);
    --primary-hover-glow: hsla(234, 89%, 64%, 0.11);
    --primary-color-rgb: 125, 139, 245;

    /* Secondary Colors */
    --secondary-color: hsl(220, 14%, 96%);
    --secondary-light: hsl(0, 0%, 100%);
    --secondary-dark: hsl(220, 14%, 90%);
    
    /* Accent Colors */
    --accent-success: hsl(134, 61%, 41%);
    --accent-success-light: hsl(162, 73%, 46%);
    --accent-success-dark: hsl(134, 61%, 31%);
    
    --accent-warning: hsl(48, 100%, 67%);
    --accent-warning-light: hsl(45, 100%, 72%);
    --accent-warning-dark: hsl(43, 100%, 62%);
    
    --accent-danger: hsl(0, 84%, 60%);
    --accent-danger-light: hsl(355, 78%, 66%);
    --accent-danger-dark: hsl(0, 84%, 50%);
    
    /* Text Colors */
    --text-primary: hsl(218, 12%, 12%);
    --text-secondary: hsl(218, 11%, 40%);
    --text-muted: hsl(218, 11%, 65%);
    --text-light: hsl(0, 0%, 100%);
    
    /* Border Colors */
    --border-light: hsl(220, 13%, 91%);
    --border-medium: hsl(220, 13%, 85%);
    --border-dark: hsl(220, 13%, 75%);
    
    /* Background Colors */
    --bg-light: hsl(220, 14%, 96%);
    --bg-white: hsl(0, 0%, 100%);
    --bg-dark: hsl(210, 10%, 23%);
    
    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, hsl(234, 89%, 74%), hsl(280, 100%, 70%));
}

/* General Element Styles */
h3 {
    color: var(--primary-dark);
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
::selection{
    background-color: var(--primary-color);
    color: var(--text-light);
}
/* Text Selection Styles */
p::selection {
    background: var(--primary-hover-glow);
    color: var(--text-primary);
}

p::-moz-selection {
    background: var(--primary-hover-glow);
    color: var(--text-primary);
}

/* Text Styles */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Button Styles */
.gradient-btn {
    background: var(--gradient-primary) !important;
    color: var(--text-light) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.gradient-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}


.uk-input{
    border-radius: 8px !important;
}
.empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.empty-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Modern Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.brand-logo {
    height: 32px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.brand-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
    padding: 0 12px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    cursor: default;
}

.nav-section-header:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
}

.section-title {
    flex: 1;
    cursor: default;
}

.section-toggle-icon {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.nav-section-header.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-list.collapsed {
    max-height: 0;
}

.nav-item {
    margin: 4px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    cursor: default;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 500;
}

.nav-link.active:hover {
    background-color: var(--primary-dark);
}

.nav-text {
    flex: 1;
}

.nav-badge {
    background-color: var(--accent-success);
    color: var(--text-light);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-badge.new {
    background-color: var(--primary-color);
}

.sidebar-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    cursor: default;
}

.user-info:hover {
    background: var(--secondary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info:hover .user-avatar {
    background: var(--primary-light);
    color: var(--primary-color);
}

.user-details {
    flex: 1;
}

.user-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.user-info:hover .user-name {
    color: var(--primary-color);
}

.ws-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ws-status-dot.connected {
    background-color: var(--accent-success);
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.ws-status-dot.disconnected {
    background-color: var(--accent-danger);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.ws-status-dot.connecting {
    background-color: var(--accent-warning);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Main content adjustment with toggle button */
body {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    background-color: var(--bg-light);
}

body.sidebar-collapsed {
    margin-left: 0;
}

/* Add a toggle button for desktop in main content */
.main-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

body.sidebar-collapsed .main-sidebar-toggle {
    opacity: 1;
    visibility: visible;
}

.main-sidebar-toggle:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    body {
        margin-left: 0;
        padding-top: 60px; /* Space for mobile header */
    }
    
    body.sidebar-collapsed {
        margin-left: 0;
    }
    
    /* Hide main sidebar toggle by default on mobile - we'll use mobile header instead */
    .main-sidebar-toggle {
        display: none;
    }
    
    /* Mobile header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        z-index: 1000;
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .mobile-header .mobile-logo {
        height: 30px;
        width: auto;
        max-width: 120px;
    }
    
    .mobile-header .mobile-menu-btn {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        color: var(--text-secondary);
        border-radius: 6px;
        transition: all 0.2s ease;
        font-size: 20px;
    }
    
    .mobile-header .mobile-menu-btn:hover {
        background: var(--secondary-light);
        color: var(--primary-color);
    }
}

/* Hide mobile header on desktop */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}

/* =========================
   RESPONSIVE COMPONENT SYSTEM
   ========================= */

/* Page Header Responsive Component */
.page-header-responsive {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.page-header-title-section {
    flex: 1;
    min-width: 300px;
}

.page-header-title-section h3 {
    margin: 0 0 4px 0;
}

.page-header-title-section p {
    margin: 0;
    color: var(--text-muted);
}

.page-header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* Responsive Action Buttons */
.action-button-responsive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.action-button-responsive:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.action-button-responsive .button-text {
    display: inline;
}

.action-button-responsive .button-icon {
    font-size: 16px;
}

/* Options Button Responsive */
.options-button-responsive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-white);
    /* border: 1px solid var(--border-light); */
    border: 0px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.options-button-responsive:hover {
    /* background: var(--secondary-light); */
    background: var(--secondary-dark);
    /* border-color: var(--primary-color); */
    color: var(--text-primary);
}

.options-button-responsive .button-text {
    display: inline;
}

.options-button-responsive .button-icon {
    font-size: 16px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-header-responsive {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .page-header-title-section {
        min-width: auto;
    }
    
    /* Hide button text on mobile, show only icons */
    .action-button-responsive .button-text,
    .options-button-responsive .button-text {
        display: none;
    }
    
    .action-button-responsive,
    .options-button-responsive {
        padding: 0;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .action-button-responsive .button-icon,
    .options-button-responsive .button-icon {
        font-size: 20px;
        margin: 0;
    }
}

/* Responsive Table Container */
.responsive-table-container {
    overflow-x: auto;
    margin: 0 -20px; /* Extend to container edges */
    padding: 0 20px;
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.responsive-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.responsive-table thead {
    background: var(--secondary-light);
    position: sticky;
    top: 0;
    z-index: 1;
}

.responsive-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
    font-size: 13px;
}

.responsive-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    font-size: 14px;
}

.responsive-table tbody tr:hover {
    background: var(--secondary-light);
}

/* Mobile Table Optimizations */
@media (max-width: 768px) {
    .responsive-table-container {
        margin: 0 -16px;
        padding: 0 16px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        position: relative;
    }
    
    .responsive-table {
        position: relative;
    }
    
    .responsive-table thead {
        position: sticky;
        top: 60px; /* Offset for mobile header */
        z-index: 10;
        background: var(--secondary-light);
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 10px 6px;
        font-size: 12px;
        min-width: 60px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
    
    .responsive-table th {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: var(--secondary-light);
        border-bottom: 2px solid var(--border-light);
    }
    
    /* Make first column sticky for better UX */
    .responsive-table th:first-child,
    .responsive-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-white);
        z-index: 12;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
        min-width: 100px;
        max-width: 140px;
    }
    
    .responsive-table thead th:first-child {
        background: var(--secondary-light);
        z-index: 15;
    }
    
    /* Hide less important columns on very small screens */
    .responsive-table .mobile-hide {
        display: none;
    }
    
    /* Compact data display for numeric columns */
    .responsive-table .numeric-compact {
        text-align: center;
        font-family: monospace;
        font-size: 11px;
    }
}

/* Form Controls Responsive */
.form-controls-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.form-controls-responsive select,
.form-controls-responsive input {
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.form-controls-responsive select:focus,
.form-controls-responsive input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

@media (max-width: 768px) {
    .form-controls-responsive {
        width: 100%;
    }
    
    .form-controls-responsive select,
    .form-controls-responsive input {
        flex: 1;
        min-width: 100px;
    }
}

/* Mobile Card Alternative for Complex Tables */
.mobile-card-list {
    display: none;
}

@media (max-width: 768px) {
    .mobile-card-list {
        display: block;
        margin: 16px 0;
    }
    
    .mobile-card-list.show-instead-of-table + .responsive-table-container {
        display: none;
    }
}

.mobile-data-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.mobile-data-card:last-child {
    margin-bottom: 0;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.mobile-card-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.mobile-data-item {
    display: flex;
    flex-direction: column;
}

.mobile-data-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mobile-data-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive Utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Compact Button Group for Mobile */
.button-group-responsive {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .button-group-responsive {
        width: 100%;
        justify-content: space-between;
    }
    
    .button-group-responsive > * {
        flex: 1;
        min-width: 44px;
    }
}

/* User Options Modal Styles */
.user-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.user-action-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.user-action-card:hover {
    background: rgba(var(--primary-color), 0.05);
    border-color: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.user-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.user-action-card:hover .user-action-icon {
    background: var(--primary-light);
}

.user-action-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

.user-action-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

body {
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    pointer-events: none;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 20px;
    background: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: var(--primary-hover-glow);
    color: var(--primary-color);
}

/* Commented out color variants as they're no longer needed
.stat-icon.primary { background: var(--primary-color); }
.stat-icon.success { background: var(--accent-success); }
.stat-icon.warning { background: var(--accent-warning); color: var(--text-primary); }
.stat-icon.info { background: var(--primary-light); }
*/

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    pointer-events: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    pointer-events: none;
}

.quick-actions {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.action-card:hover {
    background: rgba(var(--primary-color), 0.05);
    border-color: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.action-card:hover .action-icon {
    background: var(--primary-light);
}

.action-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

.action-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.recent-activity {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.recent-activity h3 {
    margin-bottom: 20px;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

.activity-item {
    display: flex;
    cursor: default;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-icon {
    color: var(--primary-color);
}

.action-button {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
    color: var(--text-light);
    text-decoration: none;
}

.action-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
}

.action-button .uk-icon {
    margin-right: 8px;
}

.uk-checkbox:checked, .uk-checkbox:indeterminate, .uk-radio:checked{
    background-color: var(--primary-color)
}



.form-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.uk-button-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.uk-button-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Styles from style.css */
* {
    touch-action: manipulation;
}

@keyframes scaleIn {
  from {
    transform: scale(.5, .5);
    opacity: .5;
  }
  to {
    transform: scale(2.5, 2.5);
    opacity: 0;
  }
}

.circle {
  border-radius: 50%;
  background-color: deepskyblue;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  animation: scaleIn 4s infinite cubic-bezier(.36, .11, .89, .32);
}

.antenna {
  border-radius: 50%;
  background-color: deepskyblue;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  position: absolute;
}

.coverage {
  height: 50px;
  width: 50px;
  background-color: rgba(0,191,255, 0.3);
  border-radius: 50%;
  display: inline-block;
  transform: translate(-50%, -50%);
}

.crosssign_stem,
.crosssign_stem2 {
  position: absolute;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.crosssign_stem {
  width: 3px;
  height: 9px;
}

.crosssign_stem2 {
  width: 9px;
  height: 3px;
}

.arrow {
  width: 30px;
  height: 30px;
  margin: 20px;
  display: inline-block;
  position: relative;
  transform: translate(100%, 100%);
}
.arrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: #1e87f0;
    border-width: 4px 4px 0 0;
    position: absolute;
    transform-origin: 50% 50%;
    transform: rotate(-45deg); 
    margin: -40px 0 0 -12px;
}
  
.arrow::after {
    content: '';
    display: block;
    border-style: solid;
    border-color: #1e87f0;
    position: absolute;
    transform-origin: 50% 50%;
    width: 0;
    height: 40px;
    border-width: 0 4px 0 0;
    transform: translate(-2px, -40px);
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4;
  color: #1e87f0;
}

.autocomplete-items div:hover {
  background-color: #1e87f0;
  color: #fff;
}

.autocomplete-active {
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}

/* Styles from antennas.html */
.antennas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 120px); /* Take most of viewport height */
}

.canvas-container {
    flex: 1;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 600px; /* Minimum height for usability */
    width: 100%;
}

#cnv-div {
    width: 100%;
    height: 100%;
    position: relative;
}

#cnv-layout {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.antennas-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    gap: 8px;
    font-size: 14px;
}

.action-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
}

#vw-table {
    width: 100%;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/* Styles from tokens_list.html */
.uk-modal-dialog {
    max-width: 600px;
}

.uk-modal-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.uk-modal-body table {
    margin: 0;
}

.uk-modal-body .uk-table th {
    padding: 12px 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uk-modal-body .uk-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.uk-modal-body .uk-table-hover tbody tr:hover {
    background: hsla(234, 89%, 90%, 0.4);
}

#txt-edit-token-name:not([disabled]) {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1) !important;
}

#txt-edit-token-name:not([disabled]):focus {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2) !important;
}

.group-name-input:not([disabled]) {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1) !important;
}

.group-name-input:not([disabled]):focus {
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2) !important;
}

.group-tokens-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    position: relative;
    backdrop-filter: blur(4px);
    text-decoration: none;
    flex-shrink: 0;
}

.group-action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.group-action-btn .btn-text {
    font-size: 11px;
    font-weight: 600;
}

.group-btn-edit {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.group-btn-edit:hover {
    background: rgba(0, 159, 227, 0.1);
    color: var(--primary-dark);
    border-color: rgba(0, 159, 227, 0.3);
    transform: translateY(-1px);
}

.group-btn-delete {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.group-btn-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .group-action-btn .btn-text {
        display: none;
    }
    
    .group-action-btn {
        min-width: 32px;
        padding: 8px;
        gap: 0;
    }
    
    .group-actions {
        gap: 6px;
    }
}

/* Styles from tokens_add.html */
.tokens-preview {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Styles from layouts.html */
.layout-card {
    transition: all 0.2s ease;
}

.layout-card .uk-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.layout-card .uk-card-media-top {
    border-radius: 8px 8px 0 0;
}

.layout-card .layout-image-container {
    border-radius: 8px 8px 0 0;
}

.layout-card .uk-card-footer {
    border-radius: 0 0 8px 8px;
}

.layout-card:hover .uk-card {
    border-color: var(--primary-color);
}

.layout-card:hover .uk-card-title {
    color: var(--primary-color);
}

.layout-card:hover .floor-order-badge {
    background: var(--primary-color);
}

.layout-card.sortable-ghost {
    opacity: 0.5;
    transform: rotate(2deg);
}

.layout-card.sortable-chosen {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.floor-order-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.drag-handle {
    cursor: grab;
    padding: 8px;
    color: #999;
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    z-index: 10;
}

.drag-handle:hover {
    color: #333;
}

.drag-handle:active {
    cursor: grabbing;
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.card-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-action-btn.edit:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: rgba(0, 159, 227, 0.05);
}

.card-action-btn.delete:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.sortable-container {
    min-height: 300px;
}

.reorder-hint {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
    display: none;
}

/* Styles from areas.html */
.areas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 120px);
}

.canvas-container {
    flex: 1;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 600px;
    width: 100%;
}

#cnv-div {
    width: 100%;
    height: 100%;
    position: relative;
}

#areas-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.drawing-cursor {
    cursor: crosshair !important;
}

.areas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.drawing-mode {
    background: #28a745 !important;
}

.edit-mode {
    background: #ffc107 !important;
    color: #212529 !important;
}

.area-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.area-type-general {
    background: #e3f2fd;
    color: #1976d2;
}

.area-type-restricted {
    background: #ffebee;
    color: #d32f2f;
}

.area-type-emergency {
    background: #fff3e0;
    color: #f57c00;
}

.canvas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.uk-notification {
    z-index: 9999;
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    max-width: 400px;
}

.uk-notification-message {
    background: white;
    color: #333;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px 20px 20px 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 159, 227, 0.1);
}

.uk-notification-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(0, 159, 227, 0.7) 50%, rgba(0, 159, 227, 0.3) 80%, rgba(0, 159, 227, 0) 100%);
}

.uk-notification-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.uk-notification-message-success {
    background: white;
    color: #2d5a2d;
    border-color: rgba(40, 167, 69, 0.2);
}

.uk-notification-message-success::after {
    background: linear-gradient(90deg, #28a745 0%, rgba(40, 167, 69, 0.7) 50%, rgba(40, 167, 69, 0.3) 80%, rgba(40, 167, 69, 0) 100%);
}

.uk-notification-message-primary {
    background: white;
    color: #1a4a6b;
    border-color: rgba(0, 159, 227, 0.2);
}

.uk-notification-message-primary::after {
    background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(0, 159, 227, 0.7) 50%, rgba(0, 159, 227, 0.3) 80%, rgba(0, 159, 227, 0) 100%);
}

.uk-notification-message-warning {
    background: white;
    color: #6b4f00;
    border-color: rgba(255, 193, 7, 0.2);
}

.uk-notification-message-warning::after {
    background: linear-gradient(90deg, #ffc107 0%, rgba(255, 193, 7, 0.7) 50%, rgba(255, 193, 7, 0.3) 80%, rgba(255, 193, 7, 0) 100%);
}

.uk-notification-message-danger {
    background: white;
    color: #6b1a1a;
    border-color: rgba(220, 53, 69, 0.2);
}

.uk-notification-message-danger::after {
    background: linear-gradient(90deg, #dc3545 0%, rgba(220, 53, 69, 0.7) 50%, rgba(220, 53, 69, 0.3) 80%, rgba(220, 53, 69, 0) 100%);
}

.uk-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    opacity: 0.6;
    transition: all 0.2s ease;
    cursor: pointer;
}

.uk-notification-close:hover {
    opacity: 1;
    color: #666;
    transform: scale(1.1);
}

.uk-notification-message {
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.uk-notification-message + .uk-notification-message {
    margin-top: 10px;
}

.color-picker-container {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-color-picker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    outline: none;
    padding: 0;
    background: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.circular-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
    border: none;
}

.circular-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.circular-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}

.color-picker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary-dark), #28a745, #ffc107, #dc3545);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

.circular-color-picker:hover + .color-picker-ring,
.circular-color-picker:focus + .color-picker-ring {
    opacity: 0.3;
}

.circular-color-picker:hover,
.circular-color-picker:focus {
    transform: scale(1.1);
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 159, 227, 0.3);
}

.uk-button-danger, .uk-button-default {
    border-radius: 6px !important;
}

.action-button.success {
    background: #28a745;
}

.action-button.success:hover {
    background: #218838;
}

/* Styles from alerts.html */
.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.alert-builder {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.builder-title {
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.flow-step {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.flow-step.active {
    border-color: var(--primary-dark);
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.2);
}

.flow-step.completed {
    border-color: #28a745;
    background: #f0fff4;
}

.flow-step.skipped {
    border-color: #6c757d;
    background: #f8f9fa;
    opacity: 0.6;
}

.flow-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flow-step-icon {
    font-size: 32px;
    color: var(--primary-dark);
    width: 50px;
    text-align: center;
}

.flow-step-info {
    flex: 1;
}

.flow-step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 20px;
}

.flow-step-desc {
    font-size: 14px;
    color: #666;
}

.flow-step-content {
    margin-left: 65px;
}

.flow-arrow {
    color: var(--primary-dark);
    font-size: 24px;
    text-align: center;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.step-confirm-btn {
    padding: 10px 20px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-confirm-btn:hover {
    background: #007bb3;
}

.step-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.token-selection-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.token-type-select {
    min-width: 250px;
    flex-shrink: 0;
}

.token-input-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.token-input-container input {
    width: 100%;
    height: 20px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
}

.token-group-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.token-group-container .multiselect-container {
    width: 100%;
    min-height: 44px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.multiselect-loading {
    padding: 10px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.autocomplete-item:hover {
    background: #f0f8ff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .token-mac {
    font-family: monospace;
    color: #666;
    font-size: 12px;
}

.autocomplete-item .token-name {
    font-weight: 500;
    color: #333;
}

.selected-tokens-display {
    margin: 15px 0;
}

.selected-tokens-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.token-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.token-tag {
    background: var(--primary-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.token-tag .remove-token {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.token-tag .remove-token:hover {
    opacity: 1;
}

.token-tag .token-mac {
    opacity: 0.8;
    font-size: 10px;
    font-family: monospace;
}

.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    width: 100%;
    min-height: 42px;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.multiselect-trigger:hover {
    border-color: var(--primary-dark);
}

.multiselect-trigger.active {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.multiselect-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.2s;
}

.multiselect-trigger.active::after {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.multiselect-dropdown.active {
    display: block;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.multiselect-option:last-child {
    border-bottom: none;
}

.multiselect-option:hover {
    background-color: #f8f9fa;
}

.multiselect-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-radius: 3px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.multiselect-checkbox.checked {
    background-color: #28a745;
    border-color: #28a745;
}

.multiselect-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.multiselect-label {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.multiselect-count {
    color: #666;
    font-size: 13px;
}

.component-library {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.component-category {
    margin-bottom: 20px;
}

.component-category h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.component-item {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    text-align: center;
}

.component-item:hover {
    background: #e3f2fd;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.2);
}

.component-item:active {
    cursor: grabbing;
}

.component-icon {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.component-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.component-desc {
    font-size: 12px;
    color: #666;
}

.alerts-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.alert-item {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: default !important;
}

.alert-item:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0, 159, 227, 0.15);
    transform: translateY(-2px);
}

.alert-item.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff, #f8fff9);
}

.alert-item.active:hover {
    border-color: #20c997;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.alert-item.paused {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffffff, #fffbf0);
    opacity: 0.95;
}

.alert-item.paused:hover {
    border-color: #fd7e14;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    cursor: default !important;
}

.alert-name {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default !important;
}

.alert-name::before {
    content: '🔔';
    font-size: 16px;
}

.alert-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    min-width: 70px;
    justify-content: center;
}

.alert-status-badge.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.alert-status-badge.paused {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.alert-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    cursor: default;
}

.alert-rule-chain {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rule-badge {
    background: var(--primary-dark);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.rule-arrow {
    color: var(--primary-dark);
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 64px;
    color: #e5e5e5;
    margin-bottom: 20px;
}

.step-selector {
    margin: 15px 0;
}

.step-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.step-selector select:focus {
    border-color: var(--primary-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.step-selector select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.selected-display {
    margin-top: 10px;
    padding: 10px;
    background: #f0f8ff;
    border: 1px solid var(--primary-dark);
    border-radius: 6px;
}

.selected-item {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
}

.selected-trigger-info {
    margin-bottom: 10px;
}

.selected-areas-display {
    border-top: 1px solid #d1ecf1;
    padding-top: 10px;
    margin-top: 10px;
}

.selected-areas-display .selected-tokens-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.condition-config,
.target-config,
.action-config {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.config-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.config-label {
    min-width: 105px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.config-panel {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.form-select option:disabled {
    color: #999;
    font-style: italic;
}

.uk-button-small {
    /* padding: 2px 4px; */
    font-size: 16px;
    min-height: 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.uk-button-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    position: relative;
    backdrop-filter: blur(4px);
    text-decoration: none;
    flex-shrink: 0;
}

.alert-action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.alert-action-btn .btn-text {
    font-size: 11px;
    font-weight: 600;
}

.alert-btn-pause {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-btn-pause:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.alert-btn-resume {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-btn-resume:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
}

.alert-btn-edit {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-btn-edit:hover {
    background: rgba(0, 159, 227, 0.1);
    color: var(--primary-dark);
    border-color: rgba(0, 159, 227, 0.3);
    transform: translateY(-1px);
}

.alert-btn-delete {
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-btn-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .alert-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .component-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .uk-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
    }
}

.tracker-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
}

.tracker-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    min-width: 0;
}

@media (max-width: 1200px) {
    .tracker-controls {
        gap: 10px;
    }
    .tracker-controls .uk-search {
        max-width: 200px;
    }
}

@media (max-width: 992px) {
    .tracker-controls {
        gap: 8px;
    }
    .tracker-controls .uk-search {
        max-width: 150px;
    }
    .tracker-controls select {
        min-width: 120px !important;
    }
}

/* Styles from venue_edit.html */
gmp-placeautocomplete {
    display: none !important;
}

.pac-container {
    z-index: 9999;
}

/* Styles from venues.html */
.custom-navbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: relative;
}

.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

.navbar-brand img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.navbar-logout {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.logout-button {
    background: white;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: white;
    color: #dc3545;
    border-color: #dc3545;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    position: relative;
    min-height: calc(100vh - 140px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 32px;
}

.create-button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.create-button:hover {
    background: #007bb8;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.venue-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 270px;
}

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

.venue-card-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.venue-header-content {
    flex: 1;
    min-width: 0;
}

.venue-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.venue-meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.venue-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.venue-edit-btn, .venue-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #666;
}

.venue-edit-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.venue-delete-btn:hover {
    background: #fff5f5;
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.venue-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venue-description, .venue-stats {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    margin: 0;
}

.venue-description span[uk-icon], .venue-stats span[uk-icon] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
}

.venue-description-text, .venue-stats-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.venue-description-empty {
    color: #999;
    font-style: italic;
}

.venue-card-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.open-venue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80%;
    margin: 0 auto;
    padding: 12px;
    background: var(--primary-dark);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.open-venue-btn:hover {
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-state-card {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.empty-icon {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.empty-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Modal Styles */
.uk-modal-dialog {
    max-width: 600px;
}

.uk-modal-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-dark);
}

/* Responsive Sidebar Toggle */
.main-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

body.sidebar-collapsed .main-sidebar-toggle {
    opacity: 1;
    visibility: visible;
}

.main-sidebar-toggle:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: none;
}

.mobile-sidebar-toggle:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }
    
    .uk-section {
        padding-top: 70px; /* Space for mobile toggle */
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    .venues-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Venues Page Styles */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Additional venue styles */
.venue-description-empty {
    color: #999;
    font-style: italic;
}

.delete-data-heading {
    color: var(--accent-danger);
    margin-bottom: 15px;
}

.dependency-list-item {
    padding: 8px 0;
}

.dependency-icon {
    color: var(--accent-danger);
}

.dependency-success-item {
    padding: 8px 0;
    color: var(--accent-success);
}


/* Antenna status indicators */
.antenna-status {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.antenna-status-danger {
    background-color: #ffeded;
    border-color: #f0506e;
}

.antenna-status-success {
    background-color: #edfbf6;
    border-color: #32d296;
}

.antenna-status-warning {
    background-color: #fff6ee;
    border-color: #faa05a;
}

.antenna-status-container {
    display: flex;
    align-items: center;
}

.gateway-online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #32d296;
    margin-right: 8px;
    display: inline-block;
}

.gateway-offline-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e74c3c;
    margin-right: 8px;
    display: inline-block;
}

.gateway-deleting-indicator {
    margin-right: 8px;
    display: inline-block;
}

/* Gateway row in deleting state */
.gateway-row-deleting {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.gateway-row-deleting * {
    color: var(--text-muted) !important;
}

.gateway-row-deleting .token-group-badge {
    background-color: var(--text-muted) !important;
    color: white !important;
}

.gateway-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #32d296;
    margin: 0 auto;
    display: block;
}

.footer-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: #666;
}

.footer-action-btn:hover {
    background-color: #f8f8f8;
}

.footer-action-btn.delete:hover {
    color: #f0506e;
}

.token-modal-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.token-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.token-modal-header {
    border-bottom: 1px solid #e5e5e5;
}

.token-modal-footer {
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    padding: 15px 20px;
}

.token-edit-name-input {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.token-edit-name-input:not([disabled]) {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.token-edit-name-input:not([disabled]):focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
}

.token-edit-icon {
    color: var(--primary-dark);
}

.token-mac-meta {
    margin-top: 2px;
}

.token-checkbox-label {
    font-size: 14px;
    margin-right: 20px;
}

.token-options-button {
    border-radius: 8px;
    white-space: nowrap;
}

.token-table-status-cell {
    width: 60px;
    text-align: center;
}

.token-table-name-cell {
    width: 40%;
}

.token-table-group-cell {
    width: 30%;
}

.token-table-time-cell {
    width: 30%;
}

/* Group Management Styles */
.group-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 600px;
}

.group-modal-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.group-card-header {
    background: #f8f9fa;
}

.group-card-title {
    color: #333;
}

.group-input {
    border-radius: 6px;
}

.group-add-button {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.group-suggestion-link {
    color: var(--primary-dark);
}

.group-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.group-name-container {
    max-width: 250px;
}

.group-tokens-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.group-tag-icon {
    margin-right: 4px;
}

.token-group-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles from antennas.html */
.antennas-page-header .uk-h3 {
    color: var(--primary-dark);
    font-weight: 600;
}

.antennas-header-controls {
    gap: 10px;
}

.antennas-header-controls .uk-select,
.antennas-header-controls .uk-button {
    border-radius: 8px;
}

.antennas-canvas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: -moz-fit-content;
    width: fit-content;
}

.antennas-canvas-controls .uk-button {
    background-color: #fff;
}

.antennas-confirm-coordinates .uk-button-default {
    background-color: #fff;
}

.antennas-confirm-coordinates .uk-button-secondary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Modals */
.antennas-modal .uk-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.antennas-modal .uk-modal-header {
    border-bottom: 1px solid var(--border-light);
}

.antennas-modal .uk-modal-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.antennas-modal .uk-modal-close-default {
    color: #666;
}

.update-modal-content {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-token-modal .uk-table {
    background: #fff;
}

.select-token-modal .uk-table thead tr {
    background: #f8f9fa;
}

.select-token-modal .uk-table th {
    color: #333;
    font-weight: 500;
}

.select-token-modal .uk-table tbody {
    color: #333;
}

/* Offcanvas */
.antennas-offcanvas .uk-offcanvas-bar {
    background: #fff;
    border-left: 1px solid var(--border-light);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    color: #333;
}

.antennas-offcanvas .uk-offcanvas-close {
    color: #666;
}

.antennas-offcanvas h2 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.antennas-offcanvas h5 {
    margin-top: -5px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.antennas-offcanvas .uk-form-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.antennas-offcanvas .uk-select,
.antennas-offcanvas .uk-input {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: #333;
    background: #fff;
}

.antennas-offcanvas .uk-input:disabled {
    background: #f8f9fa;
    color: #666;
}

.antennas-offcanvas .btn-set-coords {
    border-radius: 6px;
    background: white;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark) !important;
}

.antennas-offcanvas .uk-range {
    border-radius: 8px;
}

.antennas-offcanvas .uk-slidenav {
    color: #666;
}

.antennas-offcanvas .orientation-container {
    position: relative;
    width: 200px;
    height: 200px;
    background-image: url('../img/directions.png');
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--border-light);
}

.antennas-offcanvas #img-antenna-orientation {
    width: 120px;
    margin-top: 40px;
    margin-left: 40px;
}

.antennas-offcanvas-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.antennas-offcanvas .btn-save {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    font-size: 13px;
    text-transform: none !important;    
}

/* Swap Antenna Modal */
.swap-antenna-modal .mark-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

.swap-antenna-modal .uk-form-horizontal .uk-form-label {
    color: #333;
    font-weight: 500;
}

.swap-antenna-modal .uk-modal-footer {
    border-top: 1px solid var(--border-light);
    background: #f8f9fa;
}

.swap-antenna-modal .btn-cancel {
    border-radius: 6px;
    color: #666;
    background: #fff;
    border: 1px solid var(--border-light);
}

.swap-antenna-modal .btn-swap {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    margin-left: 10px;
}

#tbl-gateways, #table-view, #tbl-areas, #tbl-tokens, #tbl-groups, #tbl-cameras, #tbl-antennas, #users-table, #tbl-stats{
    cursor: default;
}

/* Styles from cameras.html */
.cameras-page-header .uk-h3 {
    color: var(--primary-dark);
    font-weight: 600;
}

.cameras-header-controls {
    gap: 10px;
}

.cameras-header-controls .uk-select,
.cameras-header-controls .uk-button {
    border-radius: 8px;
}

.cameras-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cameras-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cameras-table thead tr {
    background: #f8f9fa;
}

.cameras-canvas-container {
    width: 100%;
    position: relative;
}

.cameras-canvas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: -moz-fit-content;
    width: fit-content;
}

.cameras-canvas-controls .uk-button-group,
.cameras-canvas-controls .uk-button {
    background-color: #fff;
}

.cameras-confirm-coordinates {
    background-color: #fff;
}

.cameras-confirm-coordinates .uk-button-default {
    background-color: #fff;
}

.cameras-edit-modal .uk-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cameras-edit-modal .uk-modal-close-default {
    color: #666;
}

.cameras-edit-modal .uk-modal-header {
    border-bottom: 1px solid var(--border-light);
}

.cameras-edit-modal .uk-modal-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.cameras-edit-modal .uk-input,
.cameras-edit-modal .uk-select {
    border-radius: 6px;
}

.cameras-edit-modal .form-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.cameras-edit-modal .uk-input:disabled {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #f8f9fa;
    color: #666;
}

.cameras-edit-modal .btn-set-coords {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.cameras-edit-modal .uk-modal-footer {
    border-top: 1px solid var(--border-light);
    background: #f8f9fa;
}

.cameras-edit-modal .btn-cancel {
    border-radius: 6px;
    color: #666;
    background: #fff;
    border: 1px solid var(--border-light);
}

.cameras-edit-modal .btn-save {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    margin-left: 10px;
}

.update-modal-content {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Styles from camera_tracker.html */
.camera-tracker-header .uk-h3 {
    color: var(--primary-dark);
    font-weight: 600;
}

.camera-tracker-controls .uk-select,
.camera-tracker-controls .uk-search-input,
.camera-tracker-controls .uk-button {
    border-radius: 8px;
}

.camera-tracker-controls .uk-search {
    flex: 1;
    max-width: 300px;
}

.camera-tracker-controls .uk-search-input {
    width: 100%;
}

.camera-tracker-controls > div {
    flex-shrink: 0;
}

.camera-tracker-controls .uk-button {
    white-space: nowrap;
}

.camera-tracker-controls #chk-show-labels,
.camera-tracker-controls #chk-highlight-stopped,
.camera-tracker-controls #chk-show-cameras {
    opacity: 1;
}

.camera-tracker-canvas-container {
    position: relative;
    overflow: hidden;
}

.camera-tracker-canvas {
    width: 100%;
    display: block;
}

.camera-tracker-canvas-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 10px;
    align-items: center;
}

.camera-tracker-canvas-controls .uk-button {
    border-radius: 6px;
}

/* Modals */
.camera-tracker-modal .uk-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.camera-tracker-modal .uk-modal-close-default {
    color: #666;
}

.camera-tracker-modal .uk-modal-header {
    border-bottom: 1px solid var(--border-light);
}

.camera-tracker-modal .uk-modal-footer {
    border-top: 1px solid var(--border-light);
    background: #f8f9fa;
}

.camera-tracker-modal .btn-cancel {
    border-radius: 6px;
    color: #666;
    background: #fff;
    border: 1px solid var(--border-light);
}

.camera-tracker-modal .btn-primary {
    border-radius: 6px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    margin-left: 10px;
}

.camera-tracker-modal .uk-select {
    border-radius: 8px;
}

/* Styles from layouts.html */
.layout-image-container {
    background-color: var(--secondary-color);
    overflow: hidden;
}

.layout-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#delete-confirmation-modal .uk-modal-title {
    color: var(--accent-danger);
}

/* Styles from calibrate.html */
.camera-tracker-modal .uk-select {
    border-radius: 8px;
}

/* Styles from calibrate.html */
.calibration-main {
    position: relative;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.instructions-panel {
    position: absolute;
    top: 20px;
    left: 108px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    z-index: 40;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.instructions-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--secondary-color);
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.instructions-panel-header h4 {
    margin: 0;
    color: var(--primary-dark);
}

.instructions-panel-body {
    padding: 16px;
}

.instructions-panel.collapsed .instructions-panel-body {
    display: none;
}

.instructions-panel.collapsed {
    width: 320px;
}

.instructions-panel-header .uk-icon {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.instructions-panel.collapsed .uk-icon {
    transform: rotate(180deg);
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--secondary-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.calibration-canvas-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 40;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    width: auto !important;
    display: inline-block !important;
    flex-shrink: 0;
    max-width: fit-content;
}

.calibration-canvas-controls .uk-button-group {
    display: inline-flex !important;
    gap: 0;
    width: auto !important;
    flex-wrap: nowrap;
}

.calibration-canvas-controls .uk-button {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    min-width: 36px !important;
    max-width: 36px !important;
    flex-shrink: 0;
}

.measurement-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--secondary-color);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    display: none;
}

.measurement-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 13px;
}

.measurement-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.measurement-input #real-distance {
    width: 100px;
}

.measurement-input .unit-label {
    font-weight: 500;
    color: var(--primary-dark);
}

#apply-btn {
    margin-left: 12px;
    height: 32px;
    line-height: 1.2;
    padding: 0 16px;
    font-weight: 500;
}

#apply-btn .uk-icon {
    margin-right: 4px;
}

.step-indicator {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-indicator:hover {
    background: var(--border-light);
}

.step-indicator.active {
    background: #e7f3ff;
    border-color: var(--primary-dark);
}

.step-indicator.completed {
    background: #d4edda;
    border-color: var(--accent-success);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-indicator.active .step-number {
    background: var(--primary-dark);
}

.step-indicator.completed .step-number {
    background: var(--accent-success);
}

#measurement-info {
    margin-top: 16px;
    display: none;
}

#measurement-info h5 {
    margin: 12px 0 8px 0;
    color: var(--text-primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 20; }
}

.animated-line {
    animation: dashMove 1s linear infinite;
}

/* Styles from company_onboarding.html */
.onboarding-body {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.onboarding-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.onboarding-header {
    background: var(--gradient-primary);
    color: white;
    padding: 24px 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.onboarding-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

.brand-logo-onboarding {
    height: 40px;
    width: auto;
    max-width: 180px;
    margin-bottom: 12px;
    /* filter: brightness(0) invert(1); */
    animation: fadeInScale 1s ease-out 0.3s both;
    object-fit: contain;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.onboarding-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

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

.onboarding-body-content {
    padding: 30px;
}

.logo-preview-container {
    position: relative;
    /* width: 80px;
    height: 80px; */
    margin: 0 auto 20px;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.logo-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
}

.logo-preview.has-logo {
    border-color: var(--primary-dark);
    background: white;
}

.logo-preview:hover {
    border-color: var(--primary-dark);
    background: var(--secondary-color);
}

.logo-placeholder {
    color: #adb5bd;
    font-size: 12px;
    text-align: center;
}

.logo-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.logo-remove-btn:hover {
    background: rgba(0, 0, 0, 1);
}

.logo-preview.has-logo .logo-remove-btn {
    display: flex;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.upload-zone:hover {
    border-color: var(--primary-dark);
    background: var(--secondary-color);
}

.upload-zone.dragover {
    border-color: var(--primary-dark);
    background: #e3f2fd;
}

.upload-icon {
    font-size: 24px;
    color: #adb5bd;
    margin-bottom: 8px;
}

.upload-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 12px;
}

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.domain-indicator {
    background: #e3f2fd;
    border: 1px solid var(--primary-dark);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-indicator-icon {
    color: var(--primary-dark);
}

.domain-indicator-text {
    color: #0087c7;
    font-size: 12px;
    font-weight: 500;
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

.loading-overlay.active {
    display: block;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: var(--accent-danger-dark);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: var(--accent-success-dark);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.user-info-onboarding {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-onboarding {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    overflow: hidden;
}

.user-avatar-onboarding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-details-onboarding h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.user-details-onboarding p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.logo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 576px) {
    .onboarding-body-content {
        padding: 20px;
    }
    
    .onboarding-container {
        padding: 20px 15px;
    }
    
    .brand-logo-onboarding {
        height: 35px;
    }
    
    .onboarding-subtitle {
        font-size: 12px;
    }
}

/* Styles from login.html */
.login-body {
    background-color: var(--secondary-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background: var(--gradient-primary);
    color: white;
    padding: 24px 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: drift 20s infinite linear;
}

.brand-logo-login {
    height: 60px;
    width: auto;
    max-width: 200px;
    /* filter: brightness(0) invert(1); */
    animation: fadeInScale 1s ease-out 0.3s both;
    object-fit: contain;
}

/* New logo partnership styles */
.logo-partnership {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    animation: fadeInScale 1s ease-out 0.3s both;
}

.fat-logo-container {
    display: flex;
    align-items: center;
}

.fat-logo {
    height: 50px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.heart-separator {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

.company-logo-container {
    display: flex;
    align-items: center;
}

.company-logo {
    height: 50px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
    border-radius: 6px;
    background: var(--primary-light);
}

.company-initial {
    height: 50px;
    width: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.login-body-content {
    padding: 30px;
}

.welcome-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    user-select: none;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    text-decoration: none;
}

.auth-provider-logo {
    height: 20px;
    width: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.google-btn {
    background: white;
    color: var(--text-primary);
}

.google-btn:hover {
    border-color: #4285F4;
    background: #f8faff;
    color: #4285F4;
}

.microsoft-btn {
    background: white;
    color: var(--text-primary);
}

.microsoft-btn:hover {
    border-color: #00A4EF;
    background: #f8faff;
    color: #00A4EF;
}

.email-btn {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.email-btn:hover {
    border-color: var(--primary-dark);
    background: white;
    color: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    padding: 0 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
}

.login-loading-overlay.active {
    display: block;
}

.tos-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
}

.tos-text a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.tos-text a:hover {
    color: var(--primary-dark);
}

/* Styles for areas.html */
.areas-page-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.areas-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.areas-filter-status {
    white-space: nowrap;
    font-size: 12px;
    color: #666;
}

/* Area type badges */
.area-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.area-type-aisle { background: #e8f5e8; color: #2e7d32; }
.area-type-carts-stack { background: #fff3e0; color: #ef6c00; }
.area-type-checkout { background: #e3f2fd; color: #1976d2; }
.area-type-checkout-reset { background: #fce4ec; color: #c2185b; }
.area-type-horizontal-inertia-block { background: #f3e5f5; color: #7b1fa2; }
.area-type-outside { background: #f1f8e9; color: #558b2f; }
.area-type-pog { background: #fff8e1; color: #f57f17; }
.area-type-vertical-inertia-block { background: #e0f2f1; color: #00695c; }
.area-type-general { background: #e3f2fd; color: #1976d2; }
.area-type-restricted { background: #ffebee; color: #d32f2f; }
.area-type-emergency { background: #fff3e0; color: #f57c00; }

.areas-modal-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.areas-modal-header {
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.areas-modal-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.areas-modal-footer {
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.areas-color-tag {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.areas-form-label {
    color: #333;
    font-weight: 500;
}

.areas-form-input {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.areas-form-select {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.areas-color-picker {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
}

.areas-btn-cancel {
    border-radius: 6px;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.areas-btn-primary {
    border-radius: 6px;
    background: #009fe3;
    border-color: #009fe3;
    color: white;
}

@media (max-width: 768px) {
    .areas-page-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .areas-filter-group {
        justify-content: space-between;
    }
}

/* Styles for invitation_join.html */
.invitation-body {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.invitation-container {
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invitation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.invitation-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.invitation-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: drift 20s infinite linear;
}

.invitation-company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: fadeInScale 1s ease-out 0.3s both;
}

.invitation-company-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.invitation-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.invitation-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.invitation-body-content {
    padding: 24px 40px 20px;
}

.invitation-info-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.invitation-role-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.invitation-role-administrator {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

.invitation-role-technical {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.invitation-details {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.invitation-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invitation-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    width: 100%;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
    font-family: inherit;
}

.invitation-auth-button:nth-child(1) { animation-delay: 1.1s; }
.invitation-auth-button:nth-child(2) { animation-delay: 1.3s; }

.invitation-auth-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.invitation-auth-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.invitation-auth-button.google {
    background: white;
    color: #3c4043;
    border-color: #dadce0;
}

.invitation-auth-button.google:hover {
    background: #f8f9fa;
    color: #3c4043;
    border-color: #8c8c8c;
}

.invitation-auth-button.microsoft {
    background: white;
    color: #3c4043;
    border-color: #dadce0;
}

.invitation-auth-button.microsoft:hover {
    background: #f8f9fa;
    color: #3c4043;
    border-color: #8c8c8c;
}

.invitation-auth-button-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.invitation-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

.invitation-loading-overlay.active {
    display: block;
}

.invitation-expired-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    animation: slideInDown 0.5s ease-out;
}

.invitation-expired-notice h3 {
    margin: 0 0 10px 0;
    color: #721c24;
}

.invitation-venue-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.invitation-venue-chip {
    background: #e3f2fd;
    color: #0087c7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.invitation-page-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 1;
}

.invitation-footer-divider {
    width: 200px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 auto 12px;
}

.invitation-footer-copyright {
    color: #999;
    font-size: 11px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.2px;
}

.invitation-agreement-text {
    text-align: center;
    margin-top: 16px;
}

.invitation-agreement-text p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

/* Responsive styles for invitation page */
@media (max-width: 768px) {
    .invitation-card {
        margin: 15px;
        border-radius: 12px;
    }

    .invitation-body-content {
        padding: 20px 20px 16px;
    }

    .invitation-header {
        padding: 20px 20px 16px;
    }

    .invitation-company-logo {
        width: 70px;
        height: 70px;
    }

    .invitation-company-logo img {
        width: 50px;
        height: 50px;
    }

    .invitation-title {
        font-size: 18px;
    }

    .invitation-subtitle {
        font-size: 12px;
    }

    .invitation-auth-button {
        padding: 12px 16px;
        font-size: 13px;
    }

    .invitation-page-footer {
        bottom: 15px;
    }

    .invitation-footer-divider {
        width: 150px;
    }

    .invitation-footer-copyright {
        font-size: 10px;
    }
}

@media (max-height: 700px) {
    .invitation-container {
        padding: 10px;
    }

    .invitation-header {
        padding: 16px 20px 12px;
    }

    .invitation-company-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .invitation-company-logo img {
        width: 40px;
        height: 40px;
    }

    .invitation-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .invitation-subtitle {
        font-size: 12px;
    }

    .invitation-body-content {
        padding: 16px 40px 12px;
    }

    .invitation-info-box {
        margin-bottom: 16px;
        padding: 20px;
    }

    .invitation-auth-buttons {
        gap: 8px;
    }

    .invitation-auth-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .invitation-page-footer {
        bottom: 10px;
    }

    .invitation-footer-divider {
        width: 120px;
        margin-bottom: 8px;
    }

    .invitation-footer-copyright {
        font-size: 9px;
    }
}

/* Additional styles for areas.html */
.page-header-title {
    color: #009fe3;
    font-weight: 600;
}

.page-header-subtitle {
    color: var(--text-muted);
}

.page-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.form-select-rounded {
    border-radius: 8px;
}

.form-select-width-small {
    width: 100px !important;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-status {
    white-space: nowrap;
    font-size: 12px;
    color: #666;
}

.modal-rounded {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header-bordered {
    border-bottom: 1px solid #e5e5e5;
}

.modal-footer-bordered {
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.modal-close-btn {
    color: #666;
}

.area-color-tag {
    background: #3498db; 
    color: white; 
    padding: 3px 8px; 
    border-radius: 8px; 
    font-size: 11px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.form-input-rounded {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.form-input-flex {
    flex: 1;
}

.form-label-styled {
    color: #333;
    font-weight: 500;
}

.form-color-picker {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
}

.btn-rounded {
    border-radius: 6px;
}

.btn-cancel {
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.flex-gap-container {
    display: flex;
    gap: 8px;
}

.flex-align-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-form-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Responsive adjustments for areas.html */
@media (max-width: 768px) {
    .page-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .grid-form-layout {
        grid-template-columns: 1fr;
    }
}

/* Additional styles for areas.html table view */
.table-header-row {
    background: #f8f9fa;
}

.table-column-id {
    width: 40px;
}

.table-column-name {
    min-width: 150px;
}

.table-column-floor {
    width: 120px;
}

.table-column-type {
    width: 100px;
}

.table-column-color {
    width: 80px;
}

.table-column-points {
    width: 80px;
}

.table-column-actions {
    width: 120px;
}

.empty-state-icon {
    font-size: 48px;
}

/* No areas message */
.no-areas-message {
    display: none;
}

/* Additional styles from areas.html style tag */
.page-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-status {
    white-space: nowrap;
    font-size: 12px;
    color: #666;
}

/* Dynamic area type badges */
.area-type-aisle { background: #e8f5e8; color: #2e7d32; }
.area-type-carts-stack { background: #fff3e0; color: #ef6c00; }
.area-type-checkout { background: #e3f2fd; color: #1976d2; }
.area-type-checkout-reset { background: #fce4ec; color: #c2185b; }
.area-type-horizontal-inertia-block { background: #f3e5f5; color: #7b1fa2; }
.area-type-outside { background: #f1f8e9; color: #558b2f; }
.area-type-pog { background: #fff8e1; color: #f57f17; }
.area-type-vertical-inertia-block { background: #e0f2f1; color: #00695c; }

@media (max-width: 768px) {
    .page-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .uk-select {
        min-width: 120px;
    }
}

/* Styles for JavaScript-generated elements */
.table-input-transparent {
    border: none !important;
    background: transparent !important;
    padding: 4px !important;
}

.table-color-picker {
    width: 24px;
    height: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
}

.area-type-badge-small {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* User Management Styles */
.company-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 159, 227, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 8px;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.company-details {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-administrator {
    background: #dc6235;
    color: white;
}

.role-user {
    background: #28a745;
    color: white;
}

.role-technical {
    background: #007bff;
    color: white;
}

.invitation-card {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.invitation-expired {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.invitation-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.invitation-action-btn.copy:hover {
    background: #f8f9fa;
    color: #009fe3;
    border-color: #009fe3;
}

.invitation-action-btn.delete:hover {
    background: #fff5f5;
    color: #dc3545;
    border-color: #dc3545;
}

/* Button styles for primary actions */
.btn-primary-custom {
    background: #009fe3;
    border-color: #009fe3;
    color: white;
    margin-left: 10px;
}

/* Additional User Management Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009fe3 0%, #0087c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.uk-search {
    flex: 1;
    max-width: 300px;
}

.uk-search-input {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    padding: 8px 16px 8px 40px;
}

/* Venue chip style for user management */
.venue-chip-user {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    white-space: nowrap;
}

/* API Keys Management Styles */
.api-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.api-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #009fe3 0%, #0087c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 24px;
}

.api-info {
    flex: 1;
}

.api-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.api-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.api-key-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.api-key-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.key-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.key-id {
    font-size: 12px;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.key-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #009fe3;
    cursor: pointer;
    font-size: 16px;
}

.copy-btn:hover {
    color: #0087c7;
}

.access-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.access-administrator {
    background: #dc6235;
    color: white;
}

.access-technical {
    background: #007bff;
    color: white;
}

.access-user {
    background: #28a745;
    color: white;
}

.rate-limits {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.rate-limit {
    background: #e3f2fd;
    color: #0087c7;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.key-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.create-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.venue-selector {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.venue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.card-action-btn {
    color: #666;
    transition: color 0.2s ease;
    margin-right: 8px;
}

.card-action-btn:hover {
    color: #009fe3;
}

.card-action-btn.delete:hover {
    color: #f0506e;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .key-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rate-limits {
        justify-content: flex-start;
    }
}

/* AI Dashboard Styles */
.page-header {
    position: relative;
    margin-bottom: 20px;
    height: 40px;
}

.stats-toggle {
    position: absolute;
    right: 0;
    top: 0;
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.stats-toggle:hover {
    background: #e8f4fd;
    border-color: #009fe3;
    color: #009fe3;
}

.stats-toggle.active {
    background: #009fe3;
    border-color: #009fe3;
    color: white;
}

.new-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
    margin-left: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Usage stats cards - compact and hidden by default */
.stats-container {
    display: none;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.stats-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Central interface - clean and minimal */
.central-interface {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    font-size: 2.5em;
    font-weight: 300;
    color: #009fe3;
    margin-bottom: 40px;
    line-height: 1.2;
}

.query-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    position: relative;
}

/* Provider Dropdown Menu */
.provider-dropdown {
    position: relative;
    display: inline-block;
    order: 1;
}

.provider-button {
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 160px;
    justify-content: space-between;
}

.provider-button:hover {
    background: #e8f4fd;
    border-color: #009fe3;
}

.provider-button.active {
    background: #009fe3;
    border-color: #009fe3;
    color: white;
}

.provider-current {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.provider-current span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uk-margin-small-top , .uk-width-small, .uk-width-medium{
    cursor: default
}

.uk-table > thead:nth-child(1) > tr:nth-child(1) {
    cursor: default;
}

.provider-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.provider-logo.openai {
    background: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);
    color: white;
}

.provider-logo.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
}

.provider-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 4px;
    display: none;
    overflow: hidden;
}

.provider-menu.show {
    display: block;
}

.provider-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9em;
}

.provider-option:hover {
    background: #f8f9fb;
}

.provider-option.selected {
    background: #e8f4fd;
    color: #009fe3;
}

.query-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: calc(100% - 40px);
    margin: 0 20px;
    min-height: 80px;
    resize: none;
    background: #fafbfc;
    box-sizing: border-box;
}

.query-input:focus {
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
    outline: none;
    background: white;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding: 0 20px;
}

.submit-button {
    background: linear-gradient(135deg, #009fe3 0%, #0087c7 100%);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    order: 2;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.loading-container {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafe;
    border-radius: 12px;
    margin-top: 20px;
}

.loading-text {
    background: linear-gradient(90deg, #009fe3, #0087c7, #009fe3);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 2s ease-in-out infinite;
    font-size: 1.2em;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Results container - MAIN FOCUS */
.results-container {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results-container.show {
    opacity: 1;
    transform: translateY(0);
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.result-card h3, .result-card h4 {
    color: #009fe3;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* AI Analysis section - SECONDARY */
.ai-analysis {
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    order: 10; /* Move to end */
}

.ai-analysis h4 {
    color: #666;
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-analysis-content {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #009fe3;
}

/* KPIs Grid */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.kpi-card {
    background: linear-gradient(135deg, #009fe3 0%, #0087c7 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.3);
}

.kpi-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

/* Chart containers */
.chart-container {
    position: relative;
    min-height: 400px;
    margin: 20px 0;
    width: 100%;
    background: #fafbfc;
    border-radius: 8px;
    padding: 15px;
}

.chart-container .plotly-graph-div {
    width: 100% !important;
    height: 400px !important;
}

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

.data-table th {
    background: #f8f9fb;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e8eaed;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tr:hover {
    background: hsla(234, 89%, 90%, 0.4);
}

/* General hover effect for all uk-table */
.uk-table tbody tr:hover,
.uk-table-hover tbody tr:hover {
    background: var(--bg-light) !important;
    cursor: default !important;
}

/* Hover effect for responsive tables */
.responsive-table tbody tr:hover {
    background: var(--bg-light) !important;
    cursor: default !important;
}

/* Area table actions container */
.area-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* Suggestion buttons - clean and minimal */
.suggestions-container {
    margin-top: 40px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.suggestion-btn {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.85em;
    font-weight: 500;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.suggestion-btn:hover {
    border-color: #d1d5db;
    background: #fafbfc;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.suggestion-icon {
    font-size: 1.2em;
    margin-bottom: 6px;
    display: block;
    color: #6b7280;
}

.suggestion-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.suggestion-desc {
    font-size: 0.75em;
    color: #6b7280;
    line-height: 1.3;
}

/* Responsive adjustments for AI Dashboard */
@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .kpis-grid,
    .suggestions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stats-toggle {
        position: static;
        margin: 0 auto 20px auto;
        transform: none;
    }
    
    .page-header {
        text-align: center;
        height: auto;
        margin-bottom: 10px;
    }
    
    .action-row {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .provider-dropdown {
        order: 1;
    }
    
    .submit-button {
        order: 2;
    }
    
    .query-container,
    .result-card {
        padding: 15px;
    }
    
    .suggestion-btn {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for offcanvas form elements visibility */
.antennas-offcanvas .uk-select:focus,
.antennas-offcanvas .uk-select:active,
.antennas-offcanvas .uk-select:hover {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #1e87f0 !important;
}

.antennas-offcanvas .uk-input:focus,
.antennas-offcanvas .uk-input:active,
.antennas-offcanvas .uk-input:hover {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #1e87f0 !important;
}

.antennas-offcanvas .uk-input[disabled] {
    background-color: #f8f8f8 !important;
    color: #999 !important;
    border-color: #e5e5e5 !important;
}

.antennas-offcanvas .uk-range:focus {
    outline: none !important;
}

.antennas-offcanvas .uk-button:focus,
.antennas-offcanvas .uk-button:active {
    color: inherit !important;
    background-color: inherit !important;
}

.antennas-offcanvas .uk-button-primary:focus,
.antennas-offcanvas .uk-button-primary:active {
    background-color: #1e87f0 !important;
    color: #fff !important;
}

.antennas-offcanvas .uk-button-secondary:focus,
.antennas-offcanvas .uk-button-secondary:active {
    background-color: #222 !important;
    color: #fff !important;
}

/* Ensure proper contrast for labels */
.antennas-offcanvas .uk-form-label {
    color: #333 !important;
    font-weight: 500;
}

/* Fix for offcanvas text visibility */
.antennas-offcanvas h2,
.antennas-offcanvas h5 {
    color: #333 !important;
}

/* Flash Messages Styles */
.flash-messages {
    position: relative;
    z-index: 1000;
}

.flash-messages .uk-alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-md);
    font-weight: 500;
    animation: slideInDown 0.4s ease-out;
}

.flash-messages .uk-alert-primary {
    background: linear-gradient(135deg, var(--accent-success), var(--accent-success-light));
    color: var(--text-light);
    border-left: 4px solid var(--accent-success-dark);
}

.flash-messages .uk-alert-danger {
    background: linear-gradient(135deg, var(--accent-danger), var(--accent-danger-light));
    color: var(--text-light);
    border-left: 4px solid var(--accent-danger-dark);
}

.flash-messages .uk-alert-warning {
    background: linear-gradient(135deg, var(--accent-warning), var(--accent-warning-light));
    color: var(--text-primary);
    border-left: 4px solid var(--accent-warning-dark);
}

.flash-messages .uk-alert-close {
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.flash-messages .uk-alert-close:hover {
    opacity: 1;
}

/* Animation for flash messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rounded-input {
    border-radius: 8px !important;
}

/* Clean password toggle styles for emoji approach */
.password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    cursor: pointer !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    border: 1px solid #e5e5e5 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #009fe3 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Ensure the input has proper padding to avoid overlap with the eye icon */
.uk-inline:has(.password-toggle) input.rounded-input,
#login-password,
#register-password,
#register-password-confirm,
#password,
#confirm_password {
    padding-right: 45px !important;
}

.email-form-button {
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===============================================
   Empty State Styles for API Keys and other pages
   =============================================== */
.empty-state-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.empty-state-illustration {
    position: relative;
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
}

.illustration-background {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-background::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 20%;
    left: 20%;
    animation: float 3s ease-in-out infinite;
}

.illustration-background::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 70%;
    right: 25%;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.5; }
    50% { transform: translateY(-10px) translateX(5px); opacity: 1; }
}

/* API Keys specific illustration colors */
.illustration-background.api-keys {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
}

.illustration-background.api-keys::before {
    background: rgba(33, 150, 243, 0.3);
}

.illustration-background.api-keys::after {
    background: rgba(33, 150, 243, 0.4);
}

/* Alerts specific illustration colors */
.illustration-background.alerts {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
}

.illustration-background.alerts::before {
    background: rgba(255, 152, 0, 0.3);
}

.illustration-background.alerts::after {
    background: rgba(255, 152, 0, 0.4);
}

.empty-state-container h3 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state-container p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.empty-state-container .action-button {
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state-container .action-button.api-keys {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.empty-state-container .action-button.api-keys:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    color: white;
}

.empty-state-container .action-button.alerts {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.empty-state-container .action-button.alerts:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    color: white;
}

/* ===============================================
   Compact API Key Cards
   =============================================== */
.api-key-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.api-key-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.key-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.key-info {
    flex: 1;
}

.key-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.key-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.key-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.access-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: capitalize;
}

.access-badge.access-administrator {
    background: #fee2e2;
    color: #dc2626;
}

.access-badge.access-technical {
    background: #fef3c7;
    color: #d97706;
}

.access-badge.access-user {
    background: #dcfce7;
    color: #16a34a;
}

.key-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-preview-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.key-preview-compact code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #475569;
    flex: 1;
}

.copy-btn-small {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn-small:hover {
    background: #e2e8f0;
    color: #2563eb;
}

.key-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    width: 12px;
    opacity: 0.7;
}

.key-actions-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-small {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.action-btn-small:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.action-btn-small.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive Design for API Key Cards */
@media (max-width: 768px) {
    .key-main {
        flex-direction: column;
        gap: 16px;
    }
    
    .key-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .key-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .key-actions-compact {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .api-key-card {
        padding: 16px;
    }
}

/* Gateway Configuration Toast Styles */
.toast-gateway {
    border-left: 4px solid #2196f3;
}

.toast-gateway.toast-success {
    border-left-color: #4caf50;
    background-color: #f1f8e9;
}

.toast-gateway.toast-error {
    border-left-color: #f44336;
    background-color: #ffebee;
}

.toast-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
    font-size: 12px;
}

.toast-icon {
    margin-right: 8px;
    color: #2196f3;
}

.toast-gateway.toast-success .toast-icon {
    color: #4caf50;
}

.toast-gateway.toast-error .toast-icon {
    color: #f44336;
}

/* Gateway Message Button Styles */
.card-action-btn.message {
    position: relative;
    animation: messageButtonPulse 2s ease-in-out infinite;
}

.card-action-btn.message.message-success {
    color: #4caf50 !important;
    animation: messageButtonPulseSuccess 2s ease-in-out infinite;
}

.card-action-btn.message.message-error {
    color: #f44336 !important;
    animation: messageButtonPulseError 2s ease-in-out infinite;
}

.card-action-btn.message:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Message button animations */
@keyframes messageButtonPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes messageButtonPulseSuccess {
    0%, 100% { 
        opacity: 0.7; 
        color: #4caf50 !important;
    }
    50% { 
        opacity: 1; 
        color: #2e7d32 !important;
    }
}

@keyframes messageButtonPulseError {
    0%, 100% { 
        opacity: 0.7; 
        color: #f44336 !important;
    }
    50% { 
        opacity: 1; 
        color: #c62828 !important;
    }
}

/* ==========================================================================
   RESPONSIVE MOBILE FIXES
   ========================================================================== */

/* Alert Actions - Fix mobile layout wrapping */
@media (max-width: 768px) {
    .alert-actions.uk-flex {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        max-width: 100%;
    }
    
    .alert-action-btn {
        min-width: 36px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
        border: none !important;
        font-size: 12px !important;
        padding: 0 8px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    
    .alert-action-btn .btn-text {
        display: none !important; /* Hide text on mobile */
    }
    
    /* Ensure parent containers don't overflow */
    .alert-header .uk-flex.uk-flex-middle {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }
    
    .alert-status-badge {
        order: 1;
        flex-shrink: 0;
    }
    
    .alert-actions {
        order: 2;
        flex-basis: 100% !important;
        justify-content: flex-end !important;
        margin-top: 8px;
    }
}

/* Table Headers - Hide on mobile for better UX */
@media (max-width: 768px) {
    /* Hide table headers completely on mobile */
    .responsive-table thead {
        display: none !important;
    }
    
    /* Ensure responsive tables have proper spacing */
    .responsive-table-container {
        margin-top: 20px;
        position: relative;
    }
    
    /* Keep table structure but optimize for mobile */
    .responsive-table {
        position: relative;
        width: 100%;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }
    
    /* Style table body for mobile */
    .responsive-table tbody {
        position: relative;
        background: white !important;
    }
    
    /* Row styling - keep as table rows but with better spacing */
    .responsive-table tbody tr {
        background: white !important;
        border-bottom: 1px solid #e5e5e5 !important;
        display: table-row !important; /* Keep table structure */
    }
    
    /* Mobile-optimized table cells - keep table structure */
    .responsive-table tbody td {
        padding: 16px 8px !important;
        font-size: 14px !important;
        border-bottom: 1px solid #e5e5e5 !important;
        background: white !important;
        position: relative;
        vertical-align: middle !important;
        border-right: 1px solid #f0f0f0 !important;
        display: table-cell !important; /* Keep table cell structure */
        text-align: left !important;
        max-width: none !important;
        width: auto !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
    
    /* First column styling */
    .responsive-table tbody td:first-child {
        font-weight: 600 !important;
        background: white !important;
        border-left: none !important;
        padding-left: 12px !important;
    }
    
    /* Last column styling */
    .responsive-table tbody td:last-child {
        border-right: none !important;
        padding-right: 12px !important;
    }
    
    /* Add subtle row separators */
    .responsive-table tbody tr:not(:last-child) {
        border-bottom: 1px solid #e5e5e5 !important;
    }
    
    /* Alternate row background for better readability */
    .responsive-table tbody tr:nth-child(even) {
        background: #f9f9f9 !important;
    }
    
    .responsive-table tbody tr:nth-child(even) td {
        background: #f9f9f9 !important;
    }
    
    /* Remove any pseudo content that might interfere */
    .responsive-table tbody td::before {
        display: none !important;
    }
    
    /* Hide mobile-hide columns */
    .responsive-table .mobile-hide {
        display: none !important;
    }
    
    /* Ensure buttons and actions in cells are visible */
    .responsive-table tbody td .uk-button,
    .responsive-table tbody td .action-button,
    .responsive-table tbody td button {
        font-size: 12px !important;
        padding: 4px 8px !important;
        margin: 0 2px !important;
    }
    
    /* Make text in cells more readable */
    .responsive-table tbody td {
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
}


.uk-section.uk-section-default{
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.uk-text-primary {
    color: var(--primary-light) !important;
}

/* =================================================================
   HUGEICONS - Remove text decoration from icons
   ================================================================= */

/* Prevent Hugeicons from being underlined when inside links */
a [class*="hgi-"],
a [class*="hgi-"]:hover,
.nav-link [class*="hgi-"],
.nav-link [class*="hgi-"]:hover,
.card-action-btn [class*="hgi-"],
.card-action-btn [class*="hgi-"]:hover,
.action-button [class*="hgi-"],
.action-button [class*="hgi-"]:hover,
.action-button-responsive [class*="hgi-"],
.action-button-responsive [class*="hgi-"]:hover,
.group-action-btn [class*="hgi-"],
.group-action-btn [class*="hgi-"]:hover,
.alert-action-btn [class*="hgi-"],
.alert-action-btn [class*="hgi-"]:hover,
.venue-edit-btn [class*="hgi-"],
.venue-edit-btn [class*="hgi-"]:hover,
.venue-delete-btn [class*="hgi-"],
.venue-delete-btn [class*="hgi-"]:hover {
    text-decoration: none !important;
}

/* Ensure all Hugeicons never get underlined regardless of context */
[class*="hgi-"] {
    text-decoration: none !important;
}

/* Remove text decoration from any element containing Hugeicons */
a:has([class*="hgi-"]),
a:has([class*="hgi-"]):hover {
    text-decoration: none !important;
}

/* Fallback for browsers that don't support :has() selector */
a [class*="hgi-"] {
    display: inline-block;
    text-decoration: none !important;
}

/* Specific overrides for notification messages */
.uk-notification [class*="hgi-"],
.notification [class*="hgi-"],
.tooltip [class*="hgi-"] {
    text-decoration: none !important;
}

.requirements-section h4 {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
}