/* Bolt Cloud Design System */
:root {
    /* Primary Colors */
    --bolt-green: #8BC34A;
    --bolt-green-hover: #7CB342;
    --bolt-green-light: #C8E6C9;

    /* Sidebar Colors */
    --bolt-sidebar-bg: #37474F;
    --bolt-sidebar-text: #FFFFFF;
    --bolt-sidebar-hover: #455A64;
    --bolt-sidebar-active: #8BC34A;

    /* Background Colors */
    --bolt-bg-light: #FAFAFA;
    --bolt-bg-white: #FFFFFF;
    --bolt-bg-card: #FFFFFF;

    /* Text Colors */
    --bolt-text-primary: #212121;
    --bolt-text-secondary: #666666;
    --bolt-text-muted: #9E9E9E;

    /* Border Colors */
    --bolt-border-light: #E0E0E0;
    --bolt-border-medium: #BDBDBD;

    /* Status Colors */
    --bolt-status-online: #4CAF50;
    --bolt-status-offline: #F44336;
    --bolt-status-warning: #FF9800;

    /* Shadows */
    --bolt-shadow-card: 0 2px 4px rgba(0,0,0,0.1);
    --bolt-shadow-hover: 0 4px 8px rgba(0,0,0,0.15);

    /* Typography */
    --bolt-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--bolt-font-family);
    background-color: var(--bolt-bg-light);
    color: var(--bolt-text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Layout Structure */
.bolt-layout {
    display: flex;
    min-height: 100vh;
}

.bolt-sidebar {
    width: 256px;
    background-color: var(--bolt-sidebar-bg);
    color: var(--bolt-sidebar-text);
    flex-shrink: 0;
    overflow-y: auto;
}

.bolt-main {
    flex: 1;
    background-color: var(--bolt-bg-light);
    overflow-y: auto;
}

/* Sidebar Styling */
.bolt-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--bolt-sidebar-hover);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bolt-logo {
    width: 32px;
    height: 32px;
    background-color: var(--bolt-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.bolt-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--bolt-sidebar-text);
}

.bolt-beta-badge {
    background-color: var(--bolt-green);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.bolt-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.bolt-nav-item {
    margin: 0;
}

.bolt-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--bolt-sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 12px;
    font-size: 14px;
}

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

.bolt-nav-link.active {
    background-color: var(--bolt-sidebar-active);
    color: white;
}

.bolt-nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.bolt-nav-text {
    flex: 1;
}

.bolt-nav-badge {
    background-color: var(--bolt-green);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Header */
.bolt-header {
    background-color: var(--bolt-bg-white);
    border-bottom: 1px solid var(--bolt-border-light);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bolt-page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bolt-text-primary);
    margin: 0;
}

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

/* Buttons */
.bolt-btn {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.bolt-btn-primary {
    background-color: var(--bolt-green);
    color: white;
}

.bolt-btn-primary:hover {
    background-color: var(--bolt-green-hover);
    color: white;
    text-decoration: none;
}

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

.bolt-btn-secondary:hover {
    background-color: var(--bolt-bg-light);
    color: var(--bolt-text-primary);
    text-decoration: none;
}

.bolt-btn-outline {
    background-color: transparent;
    color: var(--bolt-text-secondary);
    border: 1px solid var(--bolt-border-medium);
}

.bolt-btn-outline:hover {
    background-color: var(--bolt-bg-light);
    color: var(--bolt-text-primary);
    text-decoration: none;
}

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

.bolt-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Cards */
.bolt-card {
    background-color: var(--bolt-bg-card);
    border-radius: 8px;
    box-shadow: var(--bolt-shadow-card);
    overflow: visible;
    pointer-events: auto;
}

.bolt-card:hover {
    box-shadow: var(--bolt-shadow-hover);
    transform: translateY(-2px);
}

/* Ensure all interactive elements are clickable */
button, .bolt-btn, a, input, select, textarea {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Fix any potential overlay blocking issues */
* {
    pointer-events: auto;
}

.bolt-card-body {
    pointer-events: auto;
    position: relative;
}

.bolt-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--bolt-border-light);
    background-color: var(--bolt-bg-white);
}

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

.bolt-card-body {
    padding: 20px;
}

/* Content Area */
.bolt-content {
    padding: 24px;
}

.bolt-content-wide {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tables */
.bolt-table {
    width: 100%;
    background-color: var(--bolt-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--bolt-shadow-card);
}

.bolt-table-header {
    background-color: #666666;
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bolt-table table {
    width: 100%;
    border-collapse: collapse;
}

.bolt-table th {
    background-color: #666666;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.bolt-table td {
    padding: 16px;
    border-bottom: 1px solid var(--bolt-border-light);
    vertical-align: middle;
}

.bolt-table tr:last-child td {
    border-bottom: none;
}

.bolt-table tr:hover {
    background-color: var(--bolt-bg-light);
}

/* Forms */
.bolt-form-group {
    margin-bottom: 20px;
}

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

.bolt-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bolt-border-medium);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: var(--bolt-bg-white);
}

.bolt-form-control:focus {
    outline: none;
    border-color: var(--bolt-green);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

/* Status Indicators */
.bolt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.bolt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bolt-status-online .bolt-status-dot {
    background-color: var(--bolt-status-online);
}

.bolt-status-offline .bolt-status-dot {
    background-color: var(--bolt-status-offline);
}

/* Empty States */
.bolt-empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bolt-bg-white);
    border-radius: 8px;
    box-shadow: var(--bolt-shadow-card);
}

.bolt-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--bolt-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.bolt-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bolt-text-primary);
    margin-bottom: 12px;
}

.bolt-empty-description {
    font-size: 16px;
    color: var(--bolt-text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Utilities */
.bolt-grid {
    display: grid;
    gap: 24px;
}

.bolt-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bolt-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.bolt-flex {
    display: flex;
}

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

.bolt-text-center {
    text-align: center;
}

.bolt-text-muted {
    color: var(--bolt-text-muted);
}

.bolt-mb-0 { margin-bottom: 0; }
.bolt-mb-1 { margin-bottom: 8px; }
.bolt-mb-2 { margin-bottom: 16px; }
.bolt-mb-3 { margin-bottom: 24px; }
.bolt-mb-4 { margin-bottom: 32px; }

.bolt-mt-0 { margin-top: 0; }
.bolt-mt-1 { margin-top: 8px; }
.bolt-mt-2 { margin-top: 16px; }
.bolt-mt-3 { margin-top: 24px; }
.bolt-mt-4 { margin-top: 32px; }



/* Mobile Menu Button */
.bolt-mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: var(--bolt-sidebar-bg);
    color: var(--bolt-sidebar-text);
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--bolt-shadow-card);
}

.bolt-mobile-menu-btn:hover {
    background-color: var(--bolt-sidebar-hover);
}

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

/* Responsive */
@media (max-width: 768px) {
    .bolt-mobile-menu-btn {
        display: block;
    }

    .bolt-sidebar {
        position: fixed;
        top: 0;
        left: -256px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .bolt-sidebar.open {
        left: 0;
    }

    .bolt-main {
        margin-left: 0;
    }

    .bolt-content {
        padding: 16px;
        padding-top: 80px; /* Make space for mobile menu button */
    }

    .bolt-header {
        padding-left: 60px; /* Make space for mobile menu button */
    }
}