:root {
    --primary-dark: #131932;
    --primary-light: #f9a43d;
}

/* General Styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Login Page Styles */
.login-page {
    background-color: var(--primary-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Solar Panel Grid */
        linear-gradient(90deg, var(--primary-dark) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(0deg, var(--primary-dark) 1px, transparent 1px) 0 0 / 50px 50px,
        /* Energy Connections */
        radial-gradient(circle at 25px 25px, var(--primary-light) 2px, transparent 2px) 0 0 / 50px 50px,
        radial-gradient(circle at 0px 0px, var(--primary-light) 2px, transparent 2px) 0 0 / 50px 50px,
        /* Diagonal Energy Lines */
        linear-gradient(45deg, transparent 48%, var(--primary-light) 48%, var(--primary-light) 52%, transparent 52%) 0 0 / 50px 50px,
        linear-gradient(-45deg, transparent 48%, var(--primary-light) 48%, var(--primary-light) 52%, transparent 52%) 0 0 / 50px 50px;
    opacity: 0.1;
    animation: solarPulse 8s ease-in-out infinite;
}

/* Dashboard Layout Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0b141d;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#sidebar.active {
    margin-left: 0;
}

#sidebar.collapsed {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

#sidebar .sidebar-header .logo {
    max-width: 150px;
    height: auto;
}

#sidebar ul.components {
    padding: 20px 0;
    overflow-y: auto;
    height: calc(100vh - 100px);
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

#sidebar ul li.active > a {
    background: var(--primary-light);
    color: var(--primary-dark);
}

#sidebar ul li a i {
    margin-right: 10px;
}

#content {
    width: calc(100% - 250px);
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
    padding-top: 60px; /* Height of navbar */
}

#content.expanded {
    width: 100%;
    margin-left: 0;
}

.navbar {
    padding: 15px 20px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    z-index: 999;
    transition: all 0.3s;
}

.navbar.expanded {
    left: 0;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Animations */
@keyframes solarPulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(249, 164, 61, 0.25);
}

.btn-primary {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-primary:hover {
    background-color: #e8932d;
    border-color: #e8932d;
}

.text-primary {
    color: var(--primary-light) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
    #content.expanded {
        margin-left: 250px;
    }
    .navbar {
        left: 0;
    }
    .navbar.expanded {
        left: 250px;
    }
} 