/*------------------------Layout CSS Start---------------------------- */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e293b !important;
}

    .navbar-brand i {
        color: var(--primary-color);
        margin-right: 0.5rem;
    }

.navbar {
    position: relative;
    z-index: 10000; /* higher than splash */
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #64748b !important;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
        background-color: rgba(37, 99, 235, 0.1);
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(37, 99, 235, 0.15);
        font-weight: 600;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: rgba(37, 99, 235, 0.1);
        color: var(--primary-color);
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding-top: 2rem;
}

.footer {
    background: var(--dark-color);
    color: #94a3b8;
    padding: 2rem 0;
    margin-top: 3rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-online {
    background-color: var(--success-color);
}

.status-offline {
    background-color: var(--danger-color);
}

.status-warning {
    background-color: var(--warning-color);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 1rem;
    }

        .navbar-nav .nav-link {
            margin: 0.25rem 0;
        }
}
.chart-container {
    position: relative;
    height: 300px; /* Fixed height for energy and health charts */
    width: 100%;
}

    .chart-container.large {
        height: 400px; /* Larger height for performance chart */
    }

    .chart-container canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
/* --------------------Layout CSS End------------------------------- */

/* --------------------HomePage CSS Start------------------------------- */

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a; /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Circle container */
.circle {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center logo */
.center-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 2;
    animation: logoPulse 3s infinite ease-in-out;
}

/* Orbit container */
.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

    /* Orbit letters */
    .orbit span {
        position: absolute;
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        animation: orbitPulse 2s infinite alternate;
    }

        /* Position letters in orbit */
        .orbit span:nth-child(1) {
            top: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        .orbit span:nth-child(2) {
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .orbit span:nth-child(3) {
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        .orbit span:nth-child(4) {
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* ================= FADE TRANSITIONS ================= */

.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in {
    opacity: 0;
    display: block !important;
    transition: opacity 1s ease-in;
}

    .fade-in.show {
        opacity: 1;
    }

/* ================= HOME CONTENT ================= */
#homeContent {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    padding: 40px 0;
}

.testimonial-wrap {
    margin: 15px auto;
    border-radius: 15px;
    overflow: hidden;
    animation: pulse 2.5s infinite alternate;
}

/* Card header: image + name on same line */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

/* Image top-left */
.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Windows OS Logo Colors */
.red-card {
    background-color: #f35325;
    color: #fff;
}

.green-card {
    background-color: #81bc06;
    color: #fff;
}

.blue-card {
    background-color: #00adef;
    color: #fff;
}

.yellow-card {
    background-color: #ffba08;
    color: #fff;
}


.testimonial-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .testimonial-item:hover {
        transform: translateY(-5px);
    }

.stars {
    margin: 10px 0;
    color: #fff;
}

.quote-icon-left,
.quote-icon-right {
    color: #fff;
}

h3, h4, p {
    margin: 0;
    padding: 0;
}

/* --------------------HomePage CSS End------------------------------- */
/* --------------------SolarSystem CSS Start------------------------------- */
.badge-lg {
    font-size: 0.875em;
    padding: 0.5rem 0.75rem;
}

.card {
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }

.table th {
    border-top: none;
    font-weight: 600;
}

.btn-group .btn {
    border-radius: 0;
}

    .btn-group .btn:first-child {
        border-top-left-radius: 0.25rem;
        border-bottom-left-radius: 0.25rem;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;
    }

@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }

        .btn-group .btn {
            border-radius: 0.25rem;
            margin-bottom: 2px;
        }
}
/*end Index Action*/ 
/*Start Create Action*/
.required::after {
    content: " *";
    color: red;
}

.form-label {
    font-weight: 500;
}

.custom-control-label {
    font-weight: normal;
}

.input-group-text {
    min-width: 45px;
    justify-content: center;
}

.card.bg-light {
    border: 1px solid #dee2e6;
}
/*end Create Action*/
/*Start Edit  Action*/

.required::after {
    content: " *";
    color: red;
}

.form-label {
    font-weight: 500;
}

.custom-control-label {
    font-weight: normal;
}

.input-group-text {
    min-width: 45px;
    justify-content: center;
}

.card.bg-light {
    border: 1px solid #dee2e6;
}

.field-changed {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    transition: all 0.3s ease;
}

#changeWarning {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*End Edit  Action*/
/*Start Edit  Details*/

.badge-lg {
    font-size: 0.875em;
    padding: 0.5rem 0.75rem;
}

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card {
    transition: all 0.3s ease;
}

.border-primary:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

@media print {
    .card-footer, .btn {
        display: none;
    }
}
/*End Edit  Details*/

/*Start Delete  Details*/
.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card.border-danger {
    border-width: 2px;
}

#deleteButton:disabled {
    cursor: not-allowed;
}

.text-danger i {
    opacity: 0.8;
}

.custom-control-label {
    font-weight: 500;
}

.alert {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}
/*End Delete  Details*/
.stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
}

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.progress {
    height: 8px;
}

.card {
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }

@media print {
    .btn, .card-header .btn-group {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* --------------------SolarSystem CSS End------------------------------- */
/* --------------------Invertor Controller  CSS Start------------------------------- */

.badge-lg {
    font-size: 0.875em;
    padding: 0.5rem 0.75rem;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.btn-group .btn {
    border-radius: 0;
}

    .btn-group .btn:first-child {
        border-top-left-radius: 0.25rem;
        border-bottom-left-radius: 0.25rem;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 0.25rem;
        border-bottom-right-radius: 0.25rem;
    }

.card:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.875em;
}

@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }

        .btn-group .btn {
            border-radius: 0.25rem;
            margin-bottom: 2px;
        }
}

/*</style >*/

.required::after {
    content: " *";
    color: red;
}

.form-label {
    font-weight: 500;
}

.custom-control-label {
    font-weight: normal;
}

.input-group-text {
    min-width: 45px;
    justify-content: center;
}

.card.bg-light {
    border: 1px solid #dee2e6;
}

.invalid-feedback {
    display: block;
}

/*</style >*/

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card.border-danger {
    border-width: 2px;
}

#deleteButton:disabled {
    cursor: not-allowed;
}

.text-danger i {
    opacity: 0.8;
}

.custom-control-label {
    font-weight: 500;
}

.alert {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

/*</style >*/

.badge-lg {
    font-size: 0.875em;
    padding: 0.5rem 0.75rem;
}

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card {
    transition: all 0.3s ease;
}

code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

.table-sm td {
    padding: 0.25rem 0.5rem;
}

@media print {
    .card-footer, .btn {
        display: none;
    }

    .alert {
        display: none;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.updating {
    animation: pulse 1s infinite;
}

/*</style >*/

.required::after {
    content: " *";
    color: red;
}

.form-label {
    font-weight: 500;
}

.custom-control-label {
    font-weight: normal;
}

.input-group-text {
    min-width: 45px;
    justify-content: center;
}

.card.bg-light {
    border: 1px solid #dee2e6;
}

#changeWarning {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*<style >*/
.badge-lg {
    font-size: 0.875em;
    padding: 0.5rem 0.75rem;
}

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card {
    transition: all 0.3s ease;
}

code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

.table-sm td {
    padding: 0.25rem 0.5rem;
}

@media print {
    .card-footer, .btn {
        display: none;
    }

    .alert {
        display: none;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.updating {
    animation: pulse 1s infinite;
}

/*</style >*/

.table-borderless td {
    border: none;
    padding: 0.5rem 0.75rem;
}

.card.border-danger {
    border-width: 2px;
}

#deleteButton:disabled {
    cursor: not-allowed;
}

.text-danger i {
    opacity: 0.8;
}

.custom-control-label {
    font-weight: 500;
}

.alert {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

/*</style >*/
/* --------------------Invertor Controller  CSS End------------------------------- */

