body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
    color: white; /* ✅ Keep text white for general use */
    font-family: sans-serif;
    margin: 0;
}

/* ✅ Vault Container */
.vault-container {
    position: relative;
    width: 600px;
    height: 600px;
}

/* ✅ Vault Background */
.vault-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    display: none;
    transition: opacity 1s ease-in-out, display 0s ease-in-out 1s;
}

/* ✅ Vault Door */
.vault-door {
    position: absolute;
    width: 100%;
    z-index: 2;
    transform-origin: left center;
    transition: transform 1.5s ease-in-out;
}

/* ✅ Vault Handle */
.vault-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    transition: transform 2s ease-in-out, opacity 1s ease-in-out;
    z-index: 3;
}

/* ✅ Sign-in Container */
#g-signin-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%) translateX(100px);
}

/* ✅ Sidebar */
.sidebar {
    background-color: #222;
    width: 250px;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    overflow-y: auto;
}

/* ✅ Sidebar Logo */
.logo-container {
    width: 1.5in;
    height: 1.5in;
    margin-bottom: 20px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ User Profile */
.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

/* ✅ Menu */
.menu {
    list-style: none;
    padding: 0;
}

.menu li a {
    display: block;
    color: #eee;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #333;
}

/* ✅ Content */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ✅ Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ✅ Search Box */
.search-box {
    display: flex;
}

.search-box input {
    padding: 8px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 8px 12px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #555;
    color: #fff;
    cursor: pointer;
}

/* ✅ Header Actions */
.header-actions button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
}

/* ✅ Dashboard */
.dashboard-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metrics {
    display: flex;
    justify-content: space-around;
}

.metric {
    text-align: center;
}

/* ✅ Machines */
.machine-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

/* ✅ Boxes */
.box {
    width: 250px;
    height: 250px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.box-header {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 5px;
    font-weight: bold;
}

.box-content {
    display: flex;
    flex-grow: 1;
}

/* ✅ Box Status */
.box-status {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: #fff;
}

.box-status.running { background-color: green; }
.box-status.idle { background-color: orange; }
.box-status.off { background-color: red; }

/* ✅ Box Percentage */
.box-percentage {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.percentage-wheel {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
}

/* ✅ Box Footer */
.box-footer {
    background-color: #444;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

/* ✅ Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: gray;
}
.status-indicator.green { background-color: green; }
.status-indicator.red { background-color: red; }
.status-indicator.grey { background-color: gray; }

/* ✅ Hidden Elements */
.hidden { display: none; }

/* ✅ Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #555;
    color: #fff;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.tab-button.active {
    background-color: #333;
}

.tab-content {
    border: 1px solid #555;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.tab-pane {
    display: none;
    border: 2px solid blue; /* Highlight each tab pane */
}

.tab-pane.active {
    display: block;
}
#loading-indicator {
    position: fixed; /* Fix the position to the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the element */
    /*background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    padding: 20px;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    z-index: 1000; /* Ensure it's above other content */
}

#loading-indicator.hidden {
    display: none; /* Hide the loading indicator */
}

/* ✅ Dropdown Fix */
#user-table, 
#user-table th, 
#user-table td, 
#user-table .custom-dropdown, 
#user-table .custom-dropdown .dropdown-menu li {
    color: black !important;
}

#user-table .custom-dropdown .dropdown-menu li {
    color: black !important;
}

#user-table .custom-dropdown .selected-value {
    color: black !important;
}

/* ✅ Fix Dropdown Visibility */
#user-table .custom-dropdown .dropdown-menu li:hover {
    background: #3ca0e7;
    color: white !important;
}

/* ✅ Ensure Dropdown Doesn't Get Clipped */
#user-table .custom-dropdown .dropdown-menu {
    position: absolute;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
}

/* ✅ Modal Container */
.modal {
    display: none; /* ✅ Hidden by default */
    position: fixed;
    z-index: 1000; /* ✅ Always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* ✅ Semi-transparent background */
    backdrop-filter: blur(5px); /* ✅ Optional: Adds blur effect */
}

/* ✅ Modal Content */
.modal-content {
    background-color: white;
    margin: 15% auto; /* ✅ Center modal */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* ✅ Adjust width as needed */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ✅ Close Button */
.close-modal {
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: red;
}

/* ✅ Input Fields */
.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ✅ Save Button */
.modal-content button {
    background-color: #3ca0e7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #2a8dd4;
}

#vm-table {
    display: table !important;
    visibility: visible !important;
}

/** SEAN ADDED */
/* Add these styles to your existing styles.css file */

/* Mobile-first approach - base styles for all devices */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar styles with mobile-first approach */
.sidebar {
    background-color: #222;
    width: 250px;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Content area */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 250px; /* Match sidebar width */
    transition: margin-left 0.3s ease;
}

/* Hamburger menu button - hidden by default on desktop */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Overlay for when sidebar is open on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile styles (screen width <= 768px) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%); /* Hide sidebar off-screen */
        width: 80%; /* Take up most of the screen when shown */
        max-width: 300px;
    }
    
    .sidebar.active {
        transform: translateX(0); /* Show sidebar when active */
    }
    
    .content {
        margin-left: 0; /* Full width content on mobile */
        width: 100%;
    }
    
    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    
    .sidebar-overlay.active {
        display: block; /* Show overlay when sidebar is active */
    }
    
    /* Adjust logo size for mobile */
    .logo-container {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }
    
    /* Center user profile on mobile */
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .user-profile img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Medium screens (tablets, small laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
        padding: 15px;
    }
    
    .content {
        margin-left: 200px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
}

/* Adjust form elements for mobile */
@media (max-width: 768px) {
    input, select, textarea, button {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}