/* Dashboard Hero Bar (theme-aware) */
.dashboard-hero-bar {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2.2rem 0.6rem 1.5rem;
    border-bottom: 1px solid var(--hero-bar-border, #ffe0b2);
    background: var(--hero-bar-bg, #fffbe9);
    color: var(--hero-bar-color, var(--accent-color, #FF6B2B));
    box-shadow: 0 2px 10px rgba(255,107,43,0.04);
    z-index: 1002;
}
.demo-badge {
    background: none;
    color: inherit;
    font-weight: 600;
    font-size: 1.08rem;
    border: none;
    padding: 0;
    letter-spacing: 0.01em;
}
@media (max-width: 600px) {
    .dashboard-hero-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.3rem 0.7rem;
        gap: 0.5rem;
        max-width: 100vw;
    }
}

@media (prefers-color-scheme: light) {
    .dashboard-hero-bar {
        --hero-bar-bg: #fffbe9;
        --hero-bar-border: #ffe0b2;
        --hero-bar-color: var(--accent-color, #FF6B2B);
    }
}
@media (prefers-color-scheme: dark) {
    .dashboard-hero-bar {
        --hero-bar-bg: #23272e;
        --hero-bar-border: #363a43;
        --hero-bar-color: #ffa726;
    }
}

/* Dashboard Hero Bar */
.dashboard-hero-bar {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2.2rem 0.6rem 1.5rem;
    border-bottom: 1px solid #ffe0b2;
    background: #fffbe9;
    box-shadow: 0 2px 10px rgba(255,107,43,0.04);
    z-index: 1002;
}
@media (max-width: 600px) {
    .dashboard-hero-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.3rem 0.7rem;
        gap: 0.5rem;
        max-width: 100vw;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-badge {
    background: #ffa726;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.login-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.login-modal-content {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.login-modal-header h2 {
    color: white;
    font-weight: 300;
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-group input::placeholder {
    color: #888;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

.demo-note {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #b0b0b0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* Energy Flow Dashboard Styles */
.dashboard-hero {
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
    padding: 4.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
}

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

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: pulse 2s infinite;
}

/* Energy Flow Dashboard Grid */
.energy-flow-dashboard {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, minmax(25px, 1fr));
    gap: 0.75rem;
    height: 55vh;
    max-height: 600px;
    min-height: 450px;
    position: relative;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

/* Widget Styling */
.energy-widget {
    background: #2a2a2a;
    border: 2px solid #404040;
    border-radius: 8px;
    padding: 0.5rem;
    position: relative;
    overflow: visible;
    min-height: 140px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0.75rem;
    box-sizing: border-box;
}

/* Energy Flow States */
.energy-widget.generating {
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.energy-widget.consuming {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.energy-widget.charging {
    border-color: #45b7d1;
    box-shadow: 0 0 15px rgba(69, 183, 209, 0.3);
}

.energy-widget.discharging {
    border-color: #ffa726;
    box-shadow: 0 0 15px rgba(255, 167, 38, 0.3);
}

.energy-widget.idle {
    border-color: #666;
    box-shadow: none;
}

.widget-header {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.5rem;
}

.widget-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: row; /* Arrange power display and chart side-by-side */
    align-items: center; /* Align items vertically in the center */
    justify-content: flex-start; /* Align items to the start of the container */
    gap: 10px; /* Space between power display and chart */
    min-width: 0;
    position: relative; /* For absolute positioning of children */
    padding: 0 0 2.5rem 0; /* Space for the absolutely positioned power display */
    width: 100%;
}

.current-power-display {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: baseline; /* Align power value and unit nicely */
    gap: 0.2rem;
    margin: 0;
    padding: 0.7rem 0.7rem 0.7rem 0.3rem; /* Reduced left padding */
    background: transparent;
    z-index: 2;
}

/* Ensure .power-value and .power-unit styles are appropriate for this new context if needed */

.widget-right {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-width: 0;
    overflow: visible;
    align-self: start;
}

.widget-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.7rem;
    gap: 0.2rem;
    padding-left: 0.3rem; /* Reduced left padding */
}
.widget-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 1.08rem;
    font-weight: 500;
    margin-top: 0.1em;
}
.widget-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f2f2f2;
    margin-bottom: 0;
    margin-left: 0;
    letter-spacing: 0.01em;
}
.widget-icon {
    font-size: 1.6rem;
    margin-right: 0.2em;
    line-height: 1;
}
.flow-status {
    font-size: 1.05rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffa726;
    margin-right: 0.4em;
}



/* Flow Indicators */
.flow-indicator {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    transition: color 0.3s ease;
    order: 1;
}

.flow-indicator.importing {
    color: #ff6b6b;
    animation: pulseIn 1.5s infinite;
}

.flow-indicator.exporting {
    color: #4ecdc4;
    animation: pulseOut 1.5s infinite;
}

.flow-indicator.charging {
    color: #45b7d1;
    animation: pulseCharge 1s infinite;
}

.flow-indicator.discharging {
    color: #ffa726;
    animation: pulseDischarge 1s infinite;
}

.flow-indicator.generating {
    color: #ffa726;
    animation: pulseGenerate 2s infinite;
}

.flow-indicator.idle {
    color: #666;
    animation: none;
}

.widget-icon {
    font-size: 1.5rem;
}

.widget-icon.flow-indicator {
    font-size: 1.5rem;
}

/* Flow Status Text */
.flow-status {
    font-size: 0.75rem;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    order: 2;
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #b0b0b0;
    margin: 0;
    order: 3;
}

.power-small {
    font-size: 0.9rem;
    color: #888;
    margin-left: auto;
}

.power-value {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.solar-widget .power-value {
    font-size: 1.5rem;
    margin: 0;
}

.power-value.positive {
    color: #4ecdc4;
}

.power-value.negative {
    color: #ff6b6b;
}

.battery-level-display {
    font-size: 1.8rem;
    font-weight: 300;
    color: #45b7d1;
    margin: 0;
    white-space: nowrap;
    /* Match the styling of other power values */
}

/* Widget Positions - 12-column grid */
/* Top Row */
.grid-widget {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
}

.solar-widget {
    grid-column: 7 / 13;
    grid-row: 1 / 4;
}

/* Middle Row */
.battery-widget {
    grid-column: 5 / 9;
    grid-row: 5 / 8;
}

/* Bottom Row */
.car-widget {
    grid-column: 1 / 5;
    grid-row: 9 / 12;
}

.home-widget {
    grid-column: 5 / 9;
    grid-row: 9 / 12;
}

.heatpump-widget {
    grid-column: 9 / 13;
    grid-row: 9 / 12;
}


/* Power Unit Styling */
.power-unit {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
}

/* Widget Details */
/* Removed redundant styling as it's now in the common display board style */

.grid-status, .battery-status {
    color: #4ecdc4;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.grid-rate, .grid-today, .battery-power, .battery-time {
    color: #b0b0b0;
    font-size: 0.65rem;
    line-height: 1.2;
}

.battery-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.battery-visual {
    height: 16px;
    background: #404040;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Display Board - Modern Style (applied to all widgets) */
.solar-display-board,
.grid-details,
.battery-details,
.heatpump-display-board {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(42, 42, 42, 0.7);
    border-radius: 6px;
    padding: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.08rem 0;
    border-bottom: 1px solid #404040;
    min-height: 16px;
    width: 100%;
    box-sizing: border-box;
}

.display-row:last-child {
    border-bottom: none;
}

.display-label {
    color: #e0e0e0;
    font-size: 0.65rem;
    font-weight: 500;
    min-width: 35px;
    flex-shrink: 0;
}

.display-digits {
    color: #ffa726;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    text-align: right;
    flex-grow: 1;
    margin: 0 0.1rem;
}

.display-digits.updating {
    color: #4ecdc4;
    transform: scale(1.05);
}

.display-unit {
    color: #b0b0b0;
    font-size: 0.6rem;
    flex-shrink: 0;
    text-align: right;
    min-width: 20px;
}

/* Charts */
.power-chart {
    height: 40px;
    width: 100%;
    margin-top: 0.3rem;
}


.battery-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.battery-visual {
    height: 20px;
    background: #404040;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.battery-fill {
    height: 100%;
    background: linear-gradient(90deg, #45b7d1, #4ecdc4);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.battery-fill.charging {
    animation: batteryPulse 2s infinite;
}

.battery-fill.charging::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: batteryFlow 1.5s infinite;
}

@keyframes batteryPulse {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 0 rgba(69, 183, 209, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(69, 183, 209, 0.6);
    }
}

@keyframes batteryFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.mini-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    filter: drop-shadow(0 0 3px currentColor);
}

.mini-chart-container {
    width: 100%;
    height: 50px;
    background-color: rgba(0,0,0,0.05);
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

.solar-profile-chart {
    position: absolute;
    bottom: 0.7rem;
    left: 35%;
    transform: translateX(-50%);
    width: 45%; /* Reduced to half the previous width */
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* SVG Flow Connections */
.energy-flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.flow-line {
    stroke-width: 0.08;
    stroke: #4ecdc4;
    fill: none;
    opacity: 0.8;
    stroke-dasharray: 0.3, 0.15;
    animation: dashFlow 6s linear infinite;
    transition: stroke-width 0.3s ease, opacity 0.3s ease;
}

.flow-line.solar {
    stroke: #ffa726;
}

.flow-line.grid {
    stroke: #ff6b6b;
}

.flow-line.heatpump {
    stroke: #45b7d1;
}

.flow-line.car {
    stroke: #9c27b0;
}

.flow-line.home {
    stroke: #4ecdc4;
}

/* Energy Particles */
.energy-particle {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    animation: particleFlow 2s linear infinite;
}

.energy-particle:nth-child(2) {
    animation-delay: 0.7s;
}

.energy-particle:nth-child(3) {
    animation-delay: 1.4s;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ecdc4;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.8rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulseIn {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
    }
}

@keyframes pulseOut {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(-10deg);
    }
}

@keyframes pulseCharge {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes pulseDischarge {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes pulseGenerate {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes particleFlow {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) translateY(0);
    }
}

@keyframes dashFlow {
    0% {
        stroke-dashoffset: 12;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .energy-flow-dashboard {
        height: 65vh;
        min-height: 550px;
    }
    
    .home-battery-widget {
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 1200px) {
    .energy-flow-dashboard {
        height: 60vh;
        min-height: 500px;
        gap: 0.75rem;
    }
    
    .power-value {
        font-size: 1.8rem;
    }
    
    .battery-level-display {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .energy-flow-dashboard {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(20, minmax(25px, 1fr));
        height: auto;
        min-height: 700px;
        gap: 0.75rem;
    }
    
    /* Top Row */
    .grid-widget {
        grid-column: 1 / 4;
        grid-row: 1 / 5;
    }
    
    .solar-widget {
        grid-column: 4 / 7;
        grid-row: 1 / 5;
    }
    
    /* Middle Row */
    .battery-widget {
        grid-column: 2 / 6;
        grid-row: 6 / 10;
    }
    
    /* Bottom Row */
    .car-widget {
        grid-column: 1 / 3;
        grid-row: 11 / 15;
    }
    
    .home-widget {
        grid-column: 3 / 5;
        grid-row: 11 / 15;
    }
    
    .heatpump-widget {
        grid-column: 5 / 7;
        grid-row: 11 / 15;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .login-action-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .demo-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .login-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .login-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .dashboard-container {
        padding: 0 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .energy-flow-dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        height: auto;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0.5rem;
    }
    
    .grid-widget {
        grid-column: 1;
        grid-row: 1;
    }
    
    .solar-widget {
        grid-column: 1;
        grid-row: 2;
    }
    
    .battery-widget {
        grid-column: 1;
        grid-row: 3;
    }
    
    .car-widget {
        grid-column: 1;
        grid-row: 4;
    }
    
    .home-widget {
        grid-column: 1;
        grid-row: 5;
    }
    
    .heatpump-widget {
        grid-column: 1;
        grid-row: 6;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .energy-flow-svg {
        display: none;
    }
    
    .dashboard-hero {
        padding: 6rem 0 4rem 0;
    }
}

/* Dark mode integration */
@media (prefers-color-scheme: dark) {
    .dashboard-hero {
        background: #0f0f0f;
    }
    
    .energy-widget {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .stat-card {
        background: #1a1a1a;
        border-color: #333;
    }
}

/* Styles for the new wrapper around power value and unit */
.widget-main-value {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.3em;
    margin: 0;
    position: relative; /* For consistent positioning */
    padding: 0 0 2.5rem 0.3rem; /* Reduced left padding */
    width: 100%;
    box-sizing: border-box;
}

/* Ensure .power-value within a flex context behaves as expected */
.energy-widget .power-value {
    margin: 0; /* Remove any default margins that might interfere */
    font-size: 1.8rem;
    font-weight: 300;
    white-space: nowrap;
    line-height: 1.2;
}

/* Ensure .power-unit within a flex context behaves as expected */
.energy-widget .power-unit {
    line-height: 1; /* Helps with baseline alignment */
    color: #888;
    font-size: 0.9rem;
    margin-left: 0.2rem;
    align-self: flex-end;
    padding-bottom: 0.3rem; /* Adjust vertical alignment with the value */
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #ffffff;
        --widget-bg: #f9f9f9;
        --widget-border: #e0e0e0;
        --text-color: #333333;
        --text-secondary: #666666;
        --accent-color: #FF6B2B;
        --positive-color: #4caf50;
        --negative-color: #f44336;
        --neutral-color: #ff9800;
        --chart-bg: #f9f9f9;
        --widget-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        --display-board-bg: #fff4e8;
    }
    /* ...additional overrides for dashboard elements... */
}