/* Google Fonts Import for Noto Sans */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables and Base Styles */
:root {
    --primary-color: #9688E8;
    --primary-dark: #363636;
    --primary-light: #DAD7E8;
    --secondary-color: #9688E8;
    --tertiary-color: #363636;
    --sidebar-width: 300px; /* Increased from 240px to 280px for a wider sidebar */
    --sidebar-bg: #9688E8;
    --sidebar-text: #FFFFFF;
    --border-color: #aba8b5;
    --hover-bg: rgba(150, 136, 232, 0.12);
    --active-bg: rgba(150, 136, 232, 0.18);
    --text-primary: #363636;
    --text-secondary: #9688E8;
    --shadow-sm: 0 2px 8px rgba(54, 54, 54, 0.05);
    --shadow-md: 0 4px 12px rgba(54, 54, 54, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --gradient-solar: linear-gradient(135deg, #9688E8 0%, #DAD7E8 100%);
    --gradient-header: linear-gradient(90deg, #9688E8 0%, #363636 100%);
    font-size: 14px; /* Add this line for global scaling (was typically 16px) */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    color: var(--primary-dark);
}

body {
    min-height: 100vh;
    background-color: #F7F7F7;
    color: var(--text-primary);
    background-image: none;
    font-size: 1rem; /* Increase from default (was 1rem) */
}

/* Container Layout - Adding !important to ensure these styles take priority */
.container {
    display: flex !important;
    flex-direction: row !important; 
    height: 100vh !important;
    width: 100% !important;
    overflow: hidden;
}

.alerts {
    color: var(--primary-dark);
}

/* Logo and Heading Styles */
.logo-heading {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    white-space: nowrap;
    gap: 10px;
    padding-left: 12px;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width) !important;
    height: 100vh;
    overflow-y: auto;
    position: relative !important;
    z-index: 10;
    background: white;
    color: var(--text-primary);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    transition: none !important;
}

/* Additional sidebar collapsed style */
/* .sidebar.collapsed {
    width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0;
    overflow: hidden;
    transform: translateX(-100%);
} */

/* Premium Sidebar Enhancements */
/* .premium-sidebar {
  background: linear-gradient(160deg, var(--sidebar-bg) 0%, #071a2e 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
} */

/* Mobile styles - sidebar appears above content */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 85% !important;
        flex: none !important;
        z-index: 1000;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: none !important; /* Disable animation */
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    /* Add overlay when sidebar is open */
    .sidebar:not(.collapsed)::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* background: rgba(0, 0, 0, 0.5); */
        z-index: -1;
    }
    
    .main {
        width: 100% !important;
        margin-left: 0 !important;
        overflow-x: hidden !important; /* Prevent horizontal overflow */
    }
    
    /* Keep sidebar toggle at the left side in the header */
    .sidebar-toggle {
        position: relative !important;
        /* padding: 0.5rem !important; */
        top: auto !important;
        right: auto !important;
        left: auto !important;
        z-index: 1010 !important;
        background-color: transparent !important;
        border-radius: 4px !important;
        width: 36px !important;
        height: 36px !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Change toggle appearance when sidebar is open */
    .sidebar:not(.collapsed) ~ .main .sidebar-toggle {
        background-color: var(--primary-light) !important;
        color: var(--primary-color) !important;
        position: fixed !important;
        top: 24px !important;
        left: calc(85% - 50px) !important; /* Moved more to the left for better visibility */
        z-index: 1100 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        /* border-radius: 50% !important; Make it round for better appearance */

        width: 40px !important; /* Slightly larger button */
        height: 40px !important;
    }

}

.premium-header {
  padding: 28px 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.premium-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 168, 38, 0.2), transparent);
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-solar);
  box-shadow: 0 0 15px rgba(150, 136, 232, 0.4);
  border-radius: 12px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.logo-icon i {
  color: #fff;
  font-size: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

.tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.5px;
  text-transform: lowercase;
  font-weight: 400;
}

.premium-nav {
  margin-top: 10px;
  padding-top: 5px;
}

.premium-nav .nav-item {
  margin: 6px 0;
  padding: 14px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.premium-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.premium-nav .nav-item.active {
  background: var(--gradient-solar);
  box-shadow: 0 5px 15px rgba(150, 136, 232, 0.3);

}

.premium-nav .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.premium-nav .nav-item.active .icon {
  animation: pulse 2s infinite;
}

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

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

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

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

.sidebar-header {
    padding: 28px 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    position: relative;
    height: 5rem;
}

/* style the wrapper around the sun icon */
.sidebar-header .icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-solar);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-right: 12px;
}

/* ensure the sun icon itself is white */
.sidebar-header .sun-icon {
    color: #fff;
    font-size: 20px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-items {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    gap: 10px;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 4px 16px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-solar);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--hover-bg), rgba(150, 136, 232, 0.08));
    color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(150, 136, 232, 0.15);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(150, 136, 232, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item.active::before {
    background: rgba(255, 255, 255, 0.3);
    transform: scaleY(1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sidebar .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-item:hover .icon {
    transform: scale(1.1);
}

.nav-item.active .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.system-status {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    font-weight: 500;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(150, 136, 232, 0.4);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 10px rgba(150, 136, 232, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(150, 136, 232, 0.8);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 10px rgba(150, 136, 232, 0.4);
    }
}

/* Main Content Styles */
.main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
    width: calc(100% - var(--sidebar-width)) !important;
    transition: width 0.3s ease, margin-left 0.3s ease;
}

.main.sidebar-collapsed {
    width: 100% !important;
    margin-left: 0;
}

/* Adjust header to fit the main content area */
header, .header {
    width: 100%;
    flex-shrink: 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-bottom: 1px solid var(--border-color);
    height: 5rem;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 168, 38, 0.03) 0%, transparent 70%);
    z-index: 0;
}

header h1, .header h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    position: relative;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background-color: #f0f0f0;
}

/* Notification Styles */
.notification-icon {
    position: relative;
    margin-right: 24px;
    cursor: pointer;
}

.notification-icon i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.notification-icon:hover i {
    color: var(--secondary-color);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 168, 38, 0.3);
}

.badge {
    background: #1A56B0;
    color: white;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Profile Dropdown Styles */
.profile-container {
    position: relative;
    z-index: 50; /* Reduced z-index so it doesn't override sidebar (z-index: 10) */
    display: inline-block; /* Ensure it doesn't break out of its container */
}

.profile-pic, .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.2s ease;
    object-fit: cover;
}

.profile-pic:hover {
    border-color: #1A56B0;
}

.avatar {
    background-image: linear-gradient(45deg, #f1f1f1, #e0e0e0);
    box-shadow: var(--shadow-sm);
    border: 2px solid white;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(249, 168, 38, 0.2);
}

.profile-dropdown {
    position: absolute;
    top: 100%; /* Position from bottom of container instead of fixed 50px */
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
    min-width: 180px; /* Slightly wider dropdown */
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Start from below instead of above */
    transition: all 0.3s ease;
    margin-top: 10px; /* Add some space between profile pic and dropdown */
}

.profile-dropdown:before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
}

/* Page Styles */
.page-title {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem; /* Increased from 24px */
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;  /* Changed from 40px to 100% to span full width */
    height: 3px;
    background: var(--gradient-solar);
    border-radius: 2px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    letter-spacing: 0.1px;
}

/* Panel Styles */
.panel {
    padding: 1rem;
    background-color: white;
    flex-wrap: wrap;
}

.control-panel {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.schedule,
.manual {
    background: white;
    padding: 24px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    min-width: 340px;
    border: 1px solid var(--border-color);
}

h2 {
    margin-top: 0;
    display: flex;
    align-items: center;

    font-size: 1.3rem;
    gap: 10px;
}
.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Tab Styles */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tab-button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #f0f2f5;
    cursor: pointer;
    font-size: 1rem;
}

.tab-button.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.tab,
.tab-button,
.srms-tab,
.srms-tab-button {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    padding: 0.7rem 1rem !important; /* Reduced padding */
    flex: 1 !important; /* Each tab takes equal space */
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* For text that doesn't fit */
    font-size: 0.9rem !important; /* Smaller font size */
    margin: 0 2px !important; /* Small gap between tabs */
}

/* Make sure parent container has display: flex */
.srms-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important; /* Allow horizontal scrolling if needed */
    width: 100% !important;
    gap: 4px !important; /* Small gap between tabs */
    padding: 2px !important;
    scrollbar-width: none !important; /* Hide scrollbar in Firefox */
}

.srms-tabs::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar in Chrome/Safari */
}

/* Active tab styling */


.tab-content {
    display: none !important; /* Hidden by default with !important to override other styles */
}

.tab-content.active {
    display: block !important; /* Show only when active */

}

/* Remove this conflicting rule that was showing non-hidden tabs */
/* .tab-content:not(.hidden) {
    display: block;
} */
.content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);

}

.tab-container {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    background-color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tab {
    padding: 16px 24px;
    text-align: center;
    cursor: pointer;
    flex: 1;
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
}

.tab:hover {
    background-color: var(--hover-bg);
    color: var(--secondary-color);
}

.tab.active {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: white;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-solar);
}

/* Form Styles */
label {
    display: block;
    margin-top: 12px;
    font-weight: 500;
    font-size: 1.05rem;
    
}

input[type="time"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fefefe;
    appearance: none;
    
}



select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px
}

/* Day Selection Buttons */
.days button {
    margin: 5px 4px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 1rem;
}

.days button.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Repeat Every Input */
.repeat-every {
    display: flex;
}

.repeat-every input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-right: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fefefe;
}

/* Save Button */
.save {
    margin-top: 24px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.save:hover {
    background: var(--primary-dark) !important;
}

/* Admin Note */
.admin-note {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

/* Status Row */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.status-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #C92A2A;
    display: inline-block;
    margin-right: 1rem;
}

.status-dot.running {
    background-color: var(--primary-color) !important;
}

.status-dot.stopped {
    background-color: #C92A2A;
}

/* Start Button */
button.start {
    padding: 8px 14px;
    font-size: 0.95rem;
    background-color: var(--primary-color); /* was #30D096 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
    margin-left: auto;
    display: block;
    box-sizing: border-box;
    min-width: 80px;
}

button.start:hover {
    background-color: var(--primary-dark); /* was #30D096 */
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background: #eee;
    overflow: hidden;
}

progress[value] {
    width: 100%;
    height: 16px;
    -webkit-appearance: none;
    appearance: none;
}

progress[value]::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 8px;
}

progress[value]::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 8px;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {

    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-light) !important;
    transition: 0.3s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #fff !important;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--primary-color) !important;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider:hover {
    box-shadow: 0 0 8px rgba(0,123,255,0.3) !important;
}

/* Filters and Dropdowns */
.filter-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: visible; /* <-- Allow dropdowns to overflow */
}

.filter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0.3;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.dropdown {
    padding: 12px 16px;
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-solar); /* Use your gradient */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    background: var(--primary-color); /* On hover, use your primary color */
    color: #fff;
}

.dropdown:hover::before {
    opacity: 1;
}

.dropdown:after {
    content: "▼";
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.dropdown:hover:after {
    color: #fff;
}

.dropdown-menu {
    position: absolute;
    background: var(--primary-light); /* Match dropdown background */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin-top: 5px;
    width: 200px;
    z-index: 9999; /* <-- Make sure dropdown is on top */
    display: none;
    overflow: hidden;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all  0.2s ease;
    color: var(--text-primary);
    background: white;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}



.button-group {
    gap: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
}

#filterBtn, #exportBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background-color 0.2s ease;
}






.status {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: var(--primary-color); /* was #2ecc71 */
}

.main-content {
    flex: 1;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

header .notifications {
    position: relative;
}

header .badge {
    background-color: #C92A2A;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}


.support-container h2 {
    margin-bottom: 5px;
}



.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: #f1f3f5;
    border: 1px solid #ccc;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

.tab.active {
    background: #e0f0ff;
    border-color: #1A56B0;
    color: #1A56B0;
    font-weight: bold;
}

.support-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.form-section p {
    margin-top: 1rem;
}

.form-section, .info-section {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    flex: 1 1 45%;
    border-radius: 8px;
}

.info-section p {
    padding-top: 1rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .form-section, .info-section {
        flex: 1 1 100%; /* Full width on mobile */
        margin-bottom: 20px;
        padding: 16px;
    }
    
    .support-content {
        flex-direction: column;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .form-section, .info-section {
        padding: 12px;
        border-radius: 6px;
    }
    
    .form-section p, .info-section p {
        font-size: 0.95rem;
    }
}

form input, form textarea {
    margin-top: 1rem;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.help-center-btn {
    margin-top: 20px;
    background: #c32a2a59;
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.hidden {
    display: none;
}

.emergency-tab {
    background-color: var(--primary-light); /* was #fff5f5 */
    border: 1px solid var(--primary-light); /* was #f5c2c7 */
}

.emergency-title {
    color: #c92a2a;
    font-weight: bold;
}

.emergency-box {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--primary-light); /* was #ffe3e3 */
    margin: 15px 0;
}

.emergency-number {
    font-size: 20px;
    color: #d6336c;
    font-weight: bold;
}

.emergency-reasons ul {
    margin: 10px 0 15px 20px;
    list-style-type: disc;
    color: #212529;
}

.emergency-response {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffe3e3;
    margin-bottom: 20px;
}

.emergency-call {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.support-container {
    padding: 1rem;

    background-color: white;
}

.support-container h2 {
    font-size: 24px;
}


/* system-diagnosis css */


.srms-diagnostics {
  margin-top: 30px;
  padding-left: 1rem;
}

.srms-section-title {
  font-size: 1.5rem;
}

.srms-section-subtext {
  margin-top: 5px;
  color: #555;
}

/* Select and Dropdowns */
.srms-select-container {
  margin: 1.5rem 0;
  max-width: 12rem;
}

#srms-robot-select {
  padding: 0.5rem;

  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.srms-device-select {
  padding: 10px;
  font-size: 1rem;
}

/* Tabs */
.srms-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    /* background-color: #E2E8F0; */
    max-width: 600px;
    padding: 3px;
    border-radius: 5px;
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    flex-wrap: wrap; /* Allow tabs to wrap on very small screens */
}

/* Media query for mobile screens */
/* Media query for mobile screens */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .srms-tabs {
        width: 100%;
    }
    
    .srms-tab,
    .srms-tab-button {
        padding: 0.6rem 1rem;
        text-align: center;
    }
}
/* Extra small mobile devices */
@media (max-width: 480px) {
    .srms-tabs {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .fa-server,
    .fa-tools,
    .fa-broom {
        display: none !important;
    }
}

.srms-tab,
.srms-tab-button {
  padding: 0.6rem 6.8rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #e2e8f0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}

.srms-tab-button:hover {
  background-color: #cbd5e1;
}

.srms-tab-active {
  background-color: var(--primary-color);
  color: #fff;
  
  border: 1px solid #ddd;
  font-weight: bold;
}

/* Cards */
.srms-card,
.srms-maintenance-card,
.srms-battery-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 600px;
  border: 1px solid #e2e8f0;        
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.srms-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.srms-card-subtitle {
  color: #64748b;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* Battery Info */
.srms-battery-level,
.srms-charging-efficiency {
  margin-bottom: 20px;
}

.srms-battery-info {
  margin-top: 1rem;
}

/* Labels & Badges */
.srms-label {
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.srms-badge {

  color: black;
  padding: 0.15rem 0.5rem;
  border-radius: 0.3rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.srms-badge-time {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Progress Bars */
.srms-progress-bar {
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 0.4rem;
}

.srms-progress-fill {
  height: 100%;
  background-color: var(--primary-color);
}

.srms-percentage {
  float: right;
}

/* Maintenance */
.srms-subheading {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.srms-upcoming-maintenance,
.srms-history {
  margin-top: 1rem;
}

.srms-maintenance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
}

.srms-icon {
  font-size: 1rem;
  color: #64748b;
}

.srms-maintenance-button {
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.srms-maintenance-button:hover {
  background-color: #2563eb;
}

/* Layout */
.srms-container {
  display: flex;
  min-height: 100vh;
}

.srms-sidebar {
  width: 220px;
  background-color: #1e293b;
  padding: 1.5rem;
  color: #fff;
}

.srms-logo {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.srms-nav a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.srms-nav a:hover {
  color: #fff;
}

.srms-active-link {
  font-weight: bold;
  color: #38bdf8;
}

.srms-status {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--secondary-color); /* was #34d399 */
}

/* Main Content */
.srms-main {
  flex: 1;
  padding: 1rem;
  background-color: white;
}

/* .srms-header h1 {
  font-size: 1.75rem;
} */

.srms-header p {
  margin-top: 0.5rem;
  color: #64748b;
}



/* user-managent css */



#user-management-container {
  padding: 1rem;
  background-color: white;
}

#um-header {
  font-size: 24px;
  margin-bottom: 4px;
}

#um-subtitle {
  color: #666;
  margin-bottom: 20px;
}

#um-alert {
  background-color: var(--primary-light);
  padding: 1.5rem;
  margin-bottom: 20px;
  font-size: 1rem;
  border: 1px solid var(--primary-color); /* was #31D197 */
  border-radius: 7px;
}

#um-top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;

}

#um-search {
  width: 70%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;

    font-size: 1.1rem;
}

.um-btn {
    background-color: #fff;
    border
Shorthand property for setting border width, style, and color.
Learn more
Don't show
: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

.um-bt

.um-btn-primary {
  background-color: var(--primary-color);
  color: white;
    padding: 8px 16px;
  border: none;
    cursor: pointer;
  border-radius: 6px;
}

#um-user-table {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}


.um-table-header, .um-table-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr 1fr;
  padding: 12px;
  border-bottom: 1px solid #eee;
  margin: 1rem;
}

.um-table-header {
  background-color: #f1f1f1;
  font-weight: bold;
}


.um-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  color: white;
}

.um-badge-admin {
  background-color: #1A56B0;
  margin-right: 1rem;
  margin-left: 1rem;
}
.um-badge-manager {
  background-color: #17a2b8;
    margin-right: 1rem;
      margin-left: 1rem;
}
.um-badge-operator {
  background-color: #6c757d;
    margin-right: 1rem;
      margin-left: 1rem;
}

.um-status {
  font-size: 14px;
}
.um-status-active {
  color: green;
  font-weight: bold;
}

.um-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin: 0 4px;
}

#um-bottom-panels {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

#um-role-management, #um-activity-log {
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 6px;
  flex: 1;

}

.um-role-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 8px;
}

.um-role-tag.full {
  background-color: #1A56B0;
  color: white;
}

.um-role-tag.limited {
  background-color: #ccc;
  color: black;
}

#um-bottom-panels {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.um-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 48%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

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

.um-panel-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 16px;
}

.um-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.um-role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}

.um-role-desc {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #666;
}

.um-role-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.um-role-badge.full {
  background-color: #e0efff;
  color: var(--primary-dark);
}

.um-role-badge.limited {
  background-color: #f1f1f1;
  color: #555;
}

.um-add-role-btn,
.um-view-activity-btn {
  width: 100%;
  margin-top: 20px;
}

.um-btn-outline {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  padding: 10px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.um-btn-outline:hover {
  background: #f8f8f8;
}

.um-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.um-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}

.um-avatar {
  background-color: #e9eff6;
  color: #333;
  font-weight: bold;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.um-timestamp {
  font-size: 12px;
  color: #888;
}


#um-user-accounts {
  margin-top: 30px;
}

.um-user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.um-user-table th,

.um-table-container {
  overflow-x: auto;
}

.um-user-table td {

  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
}

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

  .um-user-table, .um-user-table tbody, .um-user-table tr, .um-user-table td {
    display: block;
    width: 100%;
  }

  .um-user-table tr {
    margin-bottom: 15px;
  }

  .um-user-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .um-user-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
  }
}

  text-align: center; /* Center the text */
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.um-avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.um-role-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.um-role-badge.blue {
  background-color: #e0efff;
  color: var(--primary-dark);
}

.um-role-badge.gray {
  background-color: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
}

.um-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.um-status-indicator.active {
  background-color: var(--primary-color) !important;
}

.um-icon {
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
}

.um-icon.edit::before {
  content: "✎";
  font-size: 14px;
}

.um-icon.lock::before {
  content: "🔒";
  font-size: 14px;
}

.um-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.um-btn {
  background-color: #fff;
  border: 1px solid #d1d5db;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.um-btn:hover {
  background-color: #f3f4f6;
}

.um-btn-disabled {
  background-color: var(--primary-light) !important;
  color: #9ca3af !important;
}

/* Dashboard Styles */
.dashboard-content {
    padding: 0 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.add-robot-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(45, 114, 217, 0.2);
}

.add-robot-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 114, 217, 0.3);
}

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

.stat-card {
    display: flex;
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: space-between; /* Add this to push all child divs to the end */
}


.large-icon {
    height: 60px;
    width: 60px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-solar);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-trend.positive {
    color: var(--primary-color) !important;
    font-size: 1rem;
}

.stat-trend.negative {
    color: var(--primary-color) !important;
}

.stat-info {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 20px;
    margin: 30px 0 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 99%;
    height: 3px;
    background: var(--gradient-solar);
    border-radius: 2px;
}

/* Robot Cards */
.robots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.robot-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.robot-card.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px rgba(249, 168, 38, 0.2), var(--shadow-sm);
}

.robot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.robot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.robot-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.cleaning {
    background-color: rgba(150, 136, 232, 0.15); /* was rgba(29, 185, 84, 0.15) */
    color: var(--primary-color); /* was #1db954 */
}

.status-badge.charging {
    background-color: rgba(249, 168, 38, 0.15);
    color: var(--secondary-color);
}

.status-badge.idle {
    background-color: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.robot-battery {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.battery-bar {
    width: 100%;
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.battery-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); /* was #10b981, #34d399 */
    border-radius: 5px;
}

.battery-level.low {
    background: linear-gradient(90deg, var(--primary-light), #ede9fe); /* was #facc15, #fcd34d */
}

.battery-percentage {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    align-self: flex-end;
}

.robot-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.robot-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.control-btn {
    margin-top: auto;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Add Robot Card */
.robot-card.add-robot {
    background-color: rgba(243, 244, 246, 0.7);
    border-style: dashed;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    min-height: 230px;
}

.robot-card.add-robot:hover {
    background-color: rgba(243, 244, 246, 1);
}

.add-robot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.add-icon {
    font-size: 36px;
    color: #9ca3af;
}

.add-robot-content h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-robot-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.add-new-robot-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    margin-top: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-new-robot-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Weather Section */
.weather-section {
    margin: 30px 0;
}

.weather-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at right, rgba(249, 168, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.weather-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

.weather-card i {
    color: var(--secondary-color);
}

.weather-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.weather-main {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-state {
    margin-top: 5px;
    font-size: 16px;
    color: var(--text-secondary);
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.weather-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .robots-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Control Panel Mobile Adjustments */
    .control-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .schedule,
    .manual {
        min-width: 100%;
        padding: 16px;
    }
    
    /* Improve tabs on mobile */
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 80px;
        font-size: 0.9rem;
        padding: 10px 8px;
        text-align: center;
    }
    
    /* Improve form elements on mobile */
    input[type="time"],
    input[type="date"],
    select,
    .repeat-every input {
        font-size: 16px; /* Prevent iOS zoom on input focus */
        padding: 12px;
    }
    
    /* Improve day selection buttons */
    .days {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .days button {
        flex: 0 0 calc(25% - 8px);
        margin: 4px;
        font-size: 0.9rem;
        padding: 8px 5px;
    }
    
    /* Status row adjustments */
    .status-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Verification modal adjustments */
    .modal-content {
        width: 95%;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .days button {
        flex: 0 0 calc(33.333% - 8px);
    }
    
    .tab-button {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
    
    .schedule h2, .manual h2 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .repeat-every {
        flex-direction: column;
    }
    
    .repeat-every input {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Enhanced Mobile Responsive Styles for Reports Page */
@media (max-width: 768px) {
    /* Main content adjustments */
    .main {
        padding: 0;
    }
    
    .content {
        margin-top: 0;
        padding: 12px;
        border-radius: 0;
    }
    
    /* Page title and subtitle */
    .page-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    
    
    
    /* Tab container mobile improvements */
    .tab-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .tab {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .tab:last-child {
        border-bottom: none;
    }
    
    .tab.active {
        background-color: var(--primary-color);
        color: white;
        font-weight: 600;
        font-size: 1rem;
    }
    
    .tab.active:after {
        display: none;
    }
    
    /* Filter section mobile improvements */
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-label {
        margin-bottom: 4px;
        font-size: 12px;
    }
    
    .dropdown {
        width: 100%;
        min-width: auto;
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        position: absolute;
        top: 100%;
        margin-top: 2px;
    }
    
    .button-group {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Logs container improvements */
    .logs-container {
        border-radius: var(--radius-md);
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .logs-header {
        padding: 16px;
        background-color: #f8f9fa;
        border-bottom: 1px solid var(--border-color);
    }
    
    .logs-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .logs-header p {
        font-size: 13px;
        margin: 0;
        color: var(--text-secondary);
    }
    
    /* Search container mobile */
    .search-container {
        padding: 12px 16px;
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background-color: white;
    }
    
    .search-input input {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 12px 8px;
    }
    
    /* Table responsive behavior */
    table {
        width: 100%;
        min-width: 100%;
        font-size: 13px;
        border-radius: 0;
    }
    
  
    
    th {
        background-color: #f1f3f4;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Horizontal scroll for tables when needed */
    .logs-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* View button mobile adjustments */
    .view-btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .view-btn .icon {
        font-size: 12px;
    }
}


/* PC/Desktop Table Styles */
@media (min-width: 769px) {
    /* Table Container Styles */
    /* Enhanced Modal Styles for PC View */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .modal-content {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 500px;
        animation: modalSlideIn 0.3s ease-in-out;
        position: relative;
        margin: auto;
        overflow: hidden;
        z-index: 1001;
        display: block;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-50px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

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

    .modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: var(--text-primary);
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #888;
        transition: color 0.2s ease;
    }

    .close-btn:hover {
        color: var(--primary-color);
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body p {
        margin-bottom: 15px;
        color: #555;
    }

    .modal-body label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: var(--text-primary);
    }

    .modal-body input[type="password"] {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .modal-body .demo-note {
        font-size: 0.9rem;
        color: #777;
        margin-top: 5px;
    }

    .modal-footer {
        padding: 20px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: flex-end;
        gap: 15px;
    }

    .cancel-btn,
    .verify-btn {
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.2s ease;
    }

    .cancel-btn {
        background-color: #ddd;
        color: #333;
    }

    .cancel-btn:hover {
        background-color: #ccc;
    }

    .verify-btn {
        background-color: var(--primary-color);
        color: #fff;
    }

    .verify-btn:hover {
        background-color: var(--primary-dark);
    }

    .modal-open {
        overflow: hidden;
    }
    .logs-container {
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin: 20px 0;
        border: 1px solid var(--border-color);
        overflow: hidden;
    }
    
    /* Enhanced Search Container */
    .search-container {
        display: flex;
        align-items: center;
        background: white;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        margin: 20px 0;
        padding: 0;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
        overflow: hidden;
    }
    
    .search-container:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(150, 136, 232, 0.15);
    }
    
    .search-input {
        display: flex;
        align-items: center;
        flex: 1;
        padding: 0 12px;
    }
    
    .search-input input {
        flex: 1;
        border: none;
        outline: none;
        padding: 14px 8px;
        font-size: 1rem;
        color: var(--text-primary);
        background: transparent;
        width: 100%;
    }
    
    .search-input input::placeholder {
        color: #9ca3af;
    }
    
    .search-container .icon {
        color: var(--text-secondary);
        margin-right: 8px;
        font-size: 18px;
    }
    
    .search-clear {
        background: none;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        padding: 0 12px;
        font-size: 16px;
        opacity: 0.7;
        transition: opacity 0.2s;
    }
    
    .search-clear:hover {
        opacity: 1;
        color: var(--primary-color);
    }
    
    /* Filter and Action Buttons */
    .actions-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 20px 0;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .filter-actions, .export-actions {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    /* Button Styles */
    .btn-filter, .btn-download {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: var(--radius-md);
        font-weight: 500;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid var(--border-color);
    }
    
    .btn-filter {
        background-color: white;
        color: var(--text-primary);
    }
    
    .btn-filter:hover {
        background-color: var(--hover-bg);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .btn-filter.active {
        background-color: var(--primary-light);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .btn-download {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .btn-download:hover {
        background-color: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(150, 136, 232, 0.3);
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    /* Filter Dropdown */
    .filter-dropdown {
        position: relative;
    }
    
    .filter-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        min-width: 220px;
        z-index: 100;
        padding: 8px 0;
        max-height: 350px;
        overflow-y: auto;
    }
    
    .filter-menu-item {
        padding: 10px 16px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .filter-menu-item:hover {
        background-color: var(--hover-bg);
    }
    
    .filter-section {
        padding: 10px 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .filter-section:last-child {
        border-bottom: none;
    }
    
    .filter-section-title {
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text-primary);
        font-size: 0.9rem;
    }
    
    /* Logs Header */
    .logs-header {
        padding: 20px 24px;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(to right, white, #f8fafc);
    }
    
    .logs-header h2 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 6px;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logs-header p {
        color: var(--text-secondary);
        font-size: 1rem;
        margin: 0;
    }
    
    /* Table Styles */
    table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 1rem;
    }
    
    /* Header Styles */
    thead {
        background: linear-gradient(to bottom, #f9fafb, #f1f5f9);
    }
    
    th {
        padding: 16px 20px;
        text-align: left;
        font-weight: 600;
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 10;
        white-space: nowrap;
    }
    
    th:first-child {
        padding-left: 24px;
    }
    
    th:last-child {
        padding-right: 24px;
    }
    
    /* Row Styles */
    tbody tr {
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s ease;
    }
    
    tbody tr:last-child {
        border-bottom: none;
    }
    
    tbody tr:hover {
        background-color: var(--hover-bg);
    }
    
    /* Cell Styles */
    td {
        padding: 16px 20px;
        text-align: left;
        vertical-align: middle;
        color: var(--text-primary);
    }
    
    td:first-child {
        padding-left: 24px;
    }
    
    td:last-child {
        padding-right: 24px;
    }
    
    /* Status Cell Styling */
    td.status-cell {
        font-weight: 500;
    }
    
    td.status-cell span {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        display: inline-block;
    }
    
    td.status-cell .status-active {
        background-color: rgba(150, 136, 232, 0.1);
        color: var(--primary-color);
    }
    
    td.status-cell .status-inactive {
        background-color: rgba(107, 114, 128, 0.1);
        color: #6b7280;
    }
    
    td.status-cell .status-error {
        background-color: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
    
    /* Action Buttons */
    .view-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        background-color: var(--primary-light);
        color: var(--primary-dark);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .view-btn:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(150, 136, 232, 0.3);
    }
    
    /* Empty State */
    .table-empty-state {
        padding: 40px 20px;
        text-align: center;
        color: var(--text-secondary);
    }
    
    .table-empty-state i {
        font-size: 3rem;
        opacity: 0.5;
        margin-bottom: 16px;
        display: block;
    }
    
    /* Pagination Styles */
    .logs-pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        border-top: 1px solid var(--border-color);
        background-color: #f9fafb;
    }
    
    .pagination-info {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }
    
    .pagination-controls {
        display: flex;
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        background-color: white;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .pagination-btn:hover:not(.pagination-btn-disabled) {
        background-color: var(--hover-bg);
        color: var(--primary-color);
    }
    
    .pagination-btn-active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .pagination-btn-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .btn {
            background-color: var(--primary-light);
            color: var(--primary-dark);
            border: none;
            padding: 10px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: inline-flex
;
            align-items: center;
            gap: 6px;
            font-size: 14px;
        }
}

/* Mobile card view for very small screens */
@media (max-width: 480px) {
    .content {
        padding: 8px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    
    
    /* Convert tabs to accordion style */
    .tab-container {
        border-radius: var(--radius-sm);
    }
    
    .tab {
        padding: 14px 12px;
        font-size: 13px;
    }
    
    .tab i {
        margin-left: auto;
    }
    
    /* Filter section very small screens */
    .filter-section {
        padding: 12px;
        gap: 10px;
    }
    
    .dropdown {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .button-group {

        gap: 8px;
    }
    
    .btn {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Card view for tables on very small screens */
    .logs-container.card-view-enabled table {
        display: block;
        overflow-x: visible;
    }
    
    .logs-container.card-view-enabled thead {
        display: none;
    }
    
    .logs-container.card-view-enabled tbody {
        display: block;
    }
    
    .logs-container.card-view-enabled tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 12px;
        background-color: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .logs-container.card-view-enabled td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dotted var(--border-color);
        text-align: left;
        font-size: 13px;
    }
    
    .logs-container.card-view-enabled td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 12px;
    }
    
    .logs-container.card-view-enabled td:before {
        content: attr(data-label) ":";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 8px;
    }
    
    .logs-container.card-view-enabled .view-btn {
        margin-left: auto;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Search improvements for very small screens */
    .search-container {
        padding: 10px 12px;
    }
    
    .search-input input {
        font-size: 16px;
        padding: 10px 6px;
    }
    
    /* Logs header adjustments */
    .logs-header {
        padding: 12px;
    }
    
    .logs-header h2 {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .logs-header h2 i {
        order: -1;
        margin-bottom: 4px;
    }
/* Make tab buttons display side by side */
.tab-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    background-color: #f8fafc;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-sm);
    width: 100%;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.tab {
    flex: 1 1 auto !important; /* Equal growth for better balance */
    padding: 14px 18px !important;
    white-space: nowrap !important;
    text-align: center !important;
    min-width: auto !important;
    position: relative !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    color: var(--text-secondary) !important;
    border-bottom: 3px solid transparent !important;
    border-right: none !important;
}

.tab:hover {
    background-color: rgba(150, 136, 232, 0.08) !important;
    color: var(--primary-color) !important;
}

.tab.active {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border-bottom: 3px solid var(--primary-color) !important;
}

.tab.active:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--gradient-solar) !important;
    border-radius: 3px 3px 0 0 !important;
}

/* Add subtle dividers between tabs */
.tab:not(:last-child)::before {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 25% !important;
    height: 50% !important;
    width: 1px !important;
    background-color: rgba(0, 0, 0, 0.07) !important;
}

/* Mobile optimizations to fit all tabs without scrolling */
@media (max-width: 768px) {
    .tab-container {
        background-color: white !important;
        border-radius: var(--radius-md) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .tab {
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
    }
    
    /* Active tab is more distinctive on mobile */
    .tab.active {
        box-shadow: 0 4px 8px rgba(150, 136, 232, 0.15) !important;
    }
    /* Hide icons in tabs on mobile */
    @media (max-width: 768px) {
        .tab i, 
        .tab .icon,
        .tab svg,
        .tab .fa,
        .tab [class*="icon-"],
        .tab [class^="fa-"] {
            display: none !important;
        }
        
        .tab-container {
            border: none !important;
            box-shadow: none !important;
        }
    }
    /* Tablet devices (768px to 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .tab-container {
            margin-bottom: 20px !important;
            border: none !important;
            box-shadow: none !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            overflow-x: auto !important; /* Allow horizontal scrolling if needed */
        }
        
        .tab {
            padding: 12px 12px !important;
            font-size: 0.9rem !important;
            flex: 1 !important;
            white-space: nowrap !important;
            text-align: center !important;
        }
        
        /* Hide icons in tabs on tablets, just like mobile */
        .tab i, 
        .tab .icon,
        .tab svg,
        .tab .fa,
        .tab [class*="icon-"],
        .tab [class^="fa-"] {
            display: none !important;
        }
    }

    /* Large tablets in landscape (1025px to 1200px) */
    @media (min-width: 1025px) and (max-width: 1200px) {
        .tab-container {
            margin-bottom: 22px !important;
        }
        
        .tab {
            padding: 14px 16px !important;
            font-size: 0.95rem !important;
        }
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .tab-container {
            margin-bottom: 16px !important;
            border: none !important;
        }
        
        .tab {
            padding: 10px 8px !important;
            font-size: 0.8rem !important;
            letter-spacing: -0.2px !important;
        }
    }

    /* Extremely small screens */
    @media (max-width: 320px) {
        .tab-container {
            border-radius: var(--radius-sm) !important;
            border: none !important;
        }
        
        .tab {
            padding: 8px 6px !important;
            font-size: 0.75rem !important;
        }
    }

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* User management touch improvements */
    .um-btn-primary,
    .um-btn {
        min-height: 48px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .um-user-table tbody tr td:last-child i {
        font-size: 18px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background-color: var(--primary-light);
        color: var(--primary-color);
        margin: 2px;
    }

    .um-user-table tbody tr td:last-child i:hover {
        background-color: var(--primary-color);
        color: white;
    }
}

/* Animations and Effects */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(29, 185, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-in-out;
 }

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

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-body input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.modal-body .demo-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cancel-btn,
.verify-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.cancel-btn {
    background-color: #ddd;
    color: #333;
}

.cancel-btn:hover {
    background-color: #ccc;
}

.verify-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.verify-btn:hover {
    background-color: var(--primary-dark);
}

@keyframes sunrays {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 168, 38, 0);
    }
    50% {
        box-shadow: 0 0 25px 5px rgba(249, 168, 38, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 168, 38, 0);
    }
}

/* Modal Open Effect */
.modal-open .container {
    filter: blur(3px);
}

/* Solar Elements */
.solar-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 10px, rgba(150, 136, 232, 0.03) 10px, rgba(150, 136, 232, 0.03) 11px) !important;
    pointer-events: none;
    z-index: 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: white;
}

th,
td {
    text-align: center; /* Center the text */
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: var(--text-primary);
}

tbody tr:hover {
    background-color: var(--hover-bg);
}

.view-btn {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

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

/* Style for the filter and download buttons */
.btn {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

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

/* Style for the search input */
.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    margin-bottom: 16px;
}

.search-input {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    background-color: transparent;
}

.search-container .icon {
    color: var(--text-secondary);
    margin-right: 8px;
}

.loading-sun {
    width: 30px;
    height: 30px;
    background: var(--gradient-solar) !important;
    box-shadow: 0 0 20px rgba(150, 136, 232, 0.5) !important;
}

.solar-tooltip.active {
    opacity: 1;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    margin-right: 8px;
}

.loading-sun {
    width: 30px;
    height: 30px;
    background: var(--gradient-solar) !important;
    box-shadow: 0 0 20px rgba(150, 136, 232, 0.5) !important;
}

.solar-tooltip.active {
    opacity: 1;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* User Management Mobile Responsive Styles */
@media (max-width: 768px) {
    #user-management-container {
        padding: 0.5rem;
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    #um-header {
        font-size: 20px;
        margin-bottom: 8px;
    }

    #um-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    #um-alert {
        padding: 1rem;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    #um-top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    #um-search {
        width: 100%;
        font-size: 16px; /* Prevent iOS zoom */
        padding: 12px;
    }

    .um-btn-primary {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Fix table container overflow */
    #um-user-accounts {
        margin-top: 30px;
        overflow-x: hidden; /* Prevent panel overflow */
    }

    /* Ensure table container is visible */
    .um-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* Convert table to card layout on mobile */
    .um-user-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        display: table; /* Ensure table displays normally first */
    }

    /* Hide table headers on mobile */
    .um-user-table thead {
        display: none;
    }

    .um-user-table tbody {
        display: block;
        width: 100%;
    }

    .um-user-table tbody tr {
        display: block;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .um-user-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px dotted #eee;
        position: relative;
        padding-left: 120px;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border: none; /* Remove default table borders */
    }

    .um-user-table tbody td:last-child {
        border-bottom: none;
        padding-top: 12px;
        padding-left: 0; /* Reset padding for actions */
    }

    .um-user-table tbody td:before {
        content: attr(data-label) ":";
        position: absolute;
        left: 0;
        top: 8px;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        width: 110px;
        flex-shrink: 0;
    }

    /* Style the avatar cell differently */
    .um-user-table tbody tr td:first-child {
        display: flex;
        align-items: center;
        padding: 0 0 12px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .um-user-table tbody tr td:first-child:before {
        display: none;
    }

    .um-user-table tbody tr td:first-child .um-avatar.sm {
        margin-right: 12px;
        flex-shrink: 0;
    }

    /* Actions cell styling */
    .um-user-table tbody tr td:last-child {
        display: flex;
        gap: 12px;
        justify-content: flex-start;
        align-items: center;
        padding-left: 0;
        flex-wrap: wrap;
        padding-top: 12px;
    }

    .um-user-table tbody tr td:last-child:before {
        content: "Actions:";
        position: relative;
        top: auto;
        left: auto;
        margin-right: 12px;
        width: auto;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: fit-content;
    }

    /* Ensure icons are visible and clickable */
    .um-user-table tbody tr td:last-child i {
        font-size: 16px;
        padding: 8px;
        color: var(--primary-color);
        cursor: pointer;
        background: var(--primary-light);
        border-radius: 4px;
        margin: 2px;
        min-width: 32px;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .um-user-table tbody tr td:last-child i:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Bottom panels stack vertically */
    #um-bottom-panels {
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        width: 100%;
        overflow-x: hidden;
    }

    .um-panel {
        flex: 1 1 100%;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .um-panel-title {
        font-size: 16px;
        margin-bottom: 6px;
    }



    /* Role list improvements */
    .um-role-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .um-role-badge {
        align-self: flex-end;
    }

    /* Activity list improvements */
    .um-activity-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        width: 100%;
        overflow: hidden;
    }

    .um-avatar {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Pagination adjustments */
    .um-pagination {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-top: 16px;
        font-size: 13px;
    }

    .um-pagination > div {
        display: flex;
        gap: 8px;
    }

    .um-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    #user-management-container {
        padding: 0.25rem;
    }

    #um-header {
        font-size: 18px;
    }

    #um-alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .um-user-table tbody td {
        padding-left: 90px;
        font-size: 13px;
    }

    .um-user-table tbody td:before {
        font-size: 11px;
        width: 80px;
    }

    .um-user-table tbody tr td:last-child {
        padding-left: 0;
    }

    .um-user-table tbody tr td:last-child:before {
        width: auto;
        margin-bottom: 8px;
    }

    .um-user-table tbody tr td:last-child i {
        font-size: 14px;
        min-width: 28px;
        min-height: 28px;
        padding: 6px;
    }

    .um-panel {
        padding: 12px;
    }

    .um-panel-title {
        font-size: 15px;
    }

    


    .um-activity-item {
        font-size: 13px;
    }

    .um-timestamp {
        font-size: 11px;
    }
}


}
