/* Design Token Variables - Premium Light Glassmorphism */
:root {
    --bg-base: #f8fafc; /* Slate 50 - Very clean and bright */
    --bg-sidebar: rgba(255, 255, 255, 0.75); /* White glassmorphism */
    --bg-card: rgba(255, 255, 255, 0.75); /* High transparency white card */
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --border-color: rgba(15, 23, 42, 0.08); /* Clean dark borders with low opacity */
    --border-glow: rgba(37, 99, 235, 0.25); /* Focus blue border glow */
    
    --text-primary: #0f172a; /* Slate 900 - High contrast & readable */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    
    --accent-blue: #2563eb; /* Blue 600 - High contrast accents */
    --accent-blue-glow: rgba(37, 99, 235, 0.15);
    --accent-cyan: #0891b2; /* Cyan 600 */
    --accent-cyan-glow: rgba(8, 145, 178, 0.15);
    --accent-green: #059669; /* Emerald 600 */
    --accent-green-glow: rgba(5, 150, 105, 0.15);
    --accent-orange: #d97706; /* Amber 600 */
    --accent-orange-glow: rgba(217, 119, 6, 0.15);
    --accent-red: #dc2626; /* Red 600 */
    --accent-red-glow: rgba(220, 38, 38, 0.15);
    --accent-purple: #7c3aed; /* Violet 600 */
    --accent-purple-glow: rgba(124, 58, 237, 0.15);
    
    --font-main: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Background Glows (Bright Pastel Colors) */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    animation: floatGlow 25s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.bg-glow-3 {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 40px) scale(1.08);
    }
}

/* Layout Framework */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text-primary);
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item:hover {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.04);
}

.nav-item.active {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot.green {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.pulse-dot.green::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-green);
    animation: pulse 1.5s infinite;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.creator-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    width: 100%;
}

/* Main Content Workspace */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem;
    min-width: 0;
}

/* Glassmorphism Cards Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.08), 0 10px 15px -6px rgba(37, 99, 235, 0.04);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-title-area h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a 30%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 1rem;
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
    pointer-events: none;
}

.glass-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.65rem 2.5rem 0.65rem 2.5rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.glass-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    pointer-events: none;
}

.realtime-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.realtime-clock i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

/* Section Title Bar */
.dashboard-section {
    margin-bottom: 2.5rem;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 0.75rem;
}

.section-title-bar h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.section-icon {
    width: 22px;
    height: 22px;
}

.color-blue { color: var(--accent-blue); }
.color-red { color: var(--accent-red); }

/* OEE Section Grid */
.oee-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 1.5rem;
}

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

/* Circular OEE Gauge Card */
.oee-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.oee-gauge-container {
    position: relative;
    width: 145px;
    height: 145px;
    margin-bottom: 1rem;
}

.oee-ring-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: rgba(15, 23, 42, 0.04);
    stroke-width: 10;
}

.ring-fill {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.oee-gauge-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oee-label-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oee-label-value {
    font-size: 1.95rem;
    font-weight: 850;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.oee-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.oee-status-pass {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.oee-status-fail {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.oee-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.oee-pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* KPI Cards Layout */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.kpi-title {
    color: var(--text-muted);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.kpi-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon-box i {
    width: 18px;
    height: 18px;
}

/* Glowing card headers */
.cyan-glow {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(8, 145, 178, 0.15);
}
.blue-glow {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.orange-glow {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(217, 119, 6, 0.15);
}
.red-glow {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.green-glow {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.15);
}
.purple-glow {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.kpi-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-value-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.kpi-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.kpi-trend i {
    width: 12px;
    height: 12px;
}

.trend-up {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
}

.trend-down {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
}

.oee-progress-container {
    margin-top: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyan-bg {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    box-shadow: 0 1px 4px rgba(8, 145, 178, 0.3);
}

.green-bg {
    background: linear-gradient(90deg, var(--accent-green) 0%, #10b981 100%);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
}

.orange-bg {
    background: linear-gradient(90deg, var(--accent-orange) 0%, #f59e0b 100%);
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

.kpi-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
    border: 1px solid transparent;
}

.mtbf-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.15);
}

.mttr-badge {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    border-color: rgba(5, 150, 105, 0.15);
}

.incident-badge {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border-color: rgba(220, 38, 38, 0.15);
}

.kpi-helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Downtime Ratio Pill Visualizer */
.downtime-visual-ratio {
    width: 100%;
    height: 6px;
    display: flex;
    gap: 3px;
    margin-top: 0.5rem;
}

.ratio-pill {
    height: 100%;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.ratio-unplanned {
    background-color: var(--accent-red);
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
}

.ratio-planned {
    background-color: var(--accent-orange);
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

/* Charts Grid */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.chart-title-group p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.legend-color {
    width: 12px;
    height: 4px;
    border-radius: 2px;
}

.mtbf-color {
    background-color: var(--accent-blue);
    box-shadow: 0 1px 4px var(--accent-blue);
}

.mttr-color {
    background-color: var(--accent-orange);
    box-shadow: 0 1px 4px var(--accent-orange);
}

.oee-color {
    background-color: var(--accent-purple);
    box-shadow: 0 1px 4px var(--accent-purple);
}

.chart-body {
    position: relative;
    flex: 1;
    min-height: 250px;
}

.main-trend-card .chart-body {
    min-height: 320px;
}

.charts-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Workspace Interactive Areas (Forms and Tables) */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.5rem;
    align-items: start;
}

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

.workspace-card {
    padding: 1.75rem;
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.title-with-icon h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.title-with-icon i {
    width: 22px;
    height: 22px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Simulation Form Fields */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard-form select,
.dashboard-form input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.dashboard-form select:focus,
.dashboard-form input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    width: 100%;
    padding-right: 3rem;
}

.input-unit {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Activity Logs Table */
.activity-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-container {
    overflow-x: auto;
    max-height: 480px;
    overflow-y: auto;
}

/* Custom Scrollbar for logs table and glass UI */
.table-container::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.table-container::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

.activity-table th {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.activity-table td {
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
}

.activity-table tr:hover td {
    background: rgba(0, 0, 0, 0.015);
    color: var(--text-primary);
}

.pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pill-completed {
    background: rgba(5, 150, 105, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.pill-progress {
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.pill-critical {
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.activity-machine {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.activity-table tr:hover .activity-machine {
    background: rgba(37, 99, 235, 0.12);
}

.icon-btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
    font-weight: 600;
}

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

.icon-btn-text i {
    width: 14px;
    height: 14px;
}

/* Toast System */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--accent-green);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.12);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
}

.toast-icon {
    color: var(--accent-green);
    width: 24px;
    height: 24px;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Icons Accent Classes */
.neon-icon-blue {
    color: var(--accent-blue);
    filter: drop-shadow(0 1px 2px var(--accent-blue-glow));
}

.neon-icon-green {
    color: var(--accent-green);
    filter: drop-shadow(0 1px 2px var(--accent-green-glow));
}

.neon-icon-orange {
    color: var(--accent-orange);
    filter: drop-shadow(0 1px 2px var(--accent-orange-glow));
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 1.5rem 0.5rem;
        align-items: center;
    }
    
    .sidebar-logo .logo-text,
    .sidebar-footer .status-label,
    .sidebar-footer .creator-tag,
    .sidebar-logo h2,
    .sidebar-logo span {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 0.85rem;
        width: 50px;
        height: 50px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .select-wrapper, 
    .glass-select {
        width: 100%;
    }
    
    .charts-subgrid {
        grid-template-columns: 1fr;
    }
}
