﻿/* Style.css fisier nou*/
:root {
    --primary-color: #154EC1;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem
    }
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1; /* Lower z-index than navbar */
        box-shadow: none; /* No box shadow */
        border: none; /* No borders */
        width: 280px; /* Set sidebar width */
        margin-top: 60px; /* Match navbar height */
    }

    .main {
        margin-left: 280px; /* Offset main content by sidebar width */
        width: calc(100% - 280px); /* Adjust width to fill remaining space */
    }
}

.bi {
    display: inline-block;
    width: 1rem;
    height: 1rem;
}

/*
 * Sidebar
 */

@media (min-width: 768px) {
    .sidebar .offcanvas-lg {
        position: -webkit-sticky;
        position: sticky;
        top: 60px; /* Adjusted to match navbar height */
    }

    .navbar-search {
        display: block;
    }
}

.sidebar .nav-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    padding: 0.75rem 1rem;
    line-height: 1;
}

    .sidebar .nav-link i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
        position: relative;
        top: -1px;
    }

    .sidebar .nav-link.active {
        color: var(--primary-color);
        background-color: #ECF6FF;
        font-weight: 700;
    }

        .sidebar .nav-link.active i {
            color: var(--primary-color);
        }

.sidebar-heading {
    font-size: .75rem;
}

/*
 * Navbar
 */

.navbar {
    z-index: 1030; /* Ensure navbar is above sidebar */
    height: 60px; /* Explicitly set navbar height */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically align content */
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: #FFFFFF;
    box-shadow: none;
}

/* Custom styles for sortable table headers */
.table th a {
    color: inherit; /* Inherit color from parent (th) */
    text-decoration: none; /* Remove underline */
    display: inline-flex;
    align-items: center;
}

    .table th a:hover {
        color: inherit; /* Keep color on hover */
        text-decoration: none; /* Keep no underline on hover */
    }

    .table th a i {
        margin-left: 5px; /* Space between text and icon */
        font-size: 0.8em; /* Smaller icon */
    }

.navbar-brand .brand-text {
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar icons */
.navbar .nav-link {
    color: #212529;
    font-size: 1.2rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

    .navbar .nav-link:hover {
        color: var(--primary-color);
    }

.navbar .form-control {
    padding: .75rem 1rem;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 0.2em 0.4em;
    font-size: 0.75em;
    line-height: 1;
}


.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: #0000001a;
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em #0000001a, inset 0 .125em .5em #00000026
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh
}

.bi {
    vertical-align: -.125em;
    fill: currentColor
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8
}

.bd-mode-toggle {
    z-index: 1500
}

    .bd-mode-toggle .bi {
        width: 1em;
        height: 1em
    }

    .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important
    }

body {
    background-color: #F4F6F8;
}

body {
    font-family: 'Inter', sans-serif;
}

.card {
    border: none;
    box-shadow: none;
}

.card-header {
    background-color: #FFFFFF;
    font-weight: 700;
}
/* Sidebar active link background */
.sidebar .nav-link.active {
    background: #ECF6FF;
    font-weight: 700;
}

/* Sidebar link font bold and alignment */
.sidebar .nav-link {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    /* Sidebar icon alignment */
    .sidebar .nav-link i {
        font-size: 1.2em;
        vertical-align: middle;
    }


/* Style to center the main content and set max-width */
.container-custom-width {
    max-width: 1200px; /* Set the maximum width */
    margin-left: auto; /* Auto margin on the left */
    margin-right: auto; /* Auto margin on the right */
}

/* Custom class for the dashed border on address cards */
body .card.address-card-dashed .card-body {
    border: 1px dashed #cccccc; /* Grey dashed border */
    padding: 1.5rem; /* Add some padding inside the border */
    border-radius: 0.5rem; /* Match card's border-radius if needed */
}

/* Specific background for the "Add Address" card */
.add-address-card-bg {
    background-color: #f8f9fa; /* Light grey background, similar to the image hint */
    border: 1px dashed #dee2e6; /* Add a subtle dashed border to match the look */
}

/* Reapply padding around the content within the dashed border */
body .card.address-card-dashed .card-body > div { /* Targeting the div that contains address details */
    padding: 1.5rem;
}

/* Slight adjustment for Add Address card padding to ensure consistency */
.add-address-card-bg .card-body {
    padding: 1.5rem;
}

/* Ensure consistent alignment for buttons within the address cards */
body .card.address-card-dashed .card-body .d-flex.justify-content-end {
    margin-top: 1rem; /* Add some space above the buttons */
}


/* Existing styles */

.fixed-save-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    font-size: 1.1rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Add padding to main content to prevent button overlap */
.main {
    padding-bottom: 100px !important;
}

/* Fix for user dropdown positioning */
.user-dropdown {
    position: relative !important;
}

    .user-dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        margin-top: 0 !important;
        border-radius: 0.375rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

.navbar-nav {
    overflow: visible !important;
}


/* Stiluri pentru a potrivi Flatpickr cu tema Bootstrap */
.flatpickr-calendar {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.flatpickr-time {
    background-color: #f8f9fa;
}

/* Stil pentru card-ul de adaugare adresa/locatie */
.add-address-card-bg {
    background-color: #f8f9fa; /* O culoare de gri deschis, standard in Bootstrap */
    border: 1px solid #dee2e6; /* O bordura subtila */
}

/* Stil pentru card-urile cu adrese/locatii existente */
.address-card-dashed {
    border: 2px dashed #e0e0e0; /* Bordura punctata, mai groasa si vizibila */
}

/* Site.css fisier vechi */

/*Aditional meniu*/
.dropdown:hover .dropdown-menu {
    display: block;
}


/*hero*/
/* Găsiți regula existentă #smartMeteringHero și înlocuiți-o cu aceasta */
#smartMeteringHero {
    position: relative;
    width: 100%;
    height: 380px; /* Am redus puțin înălțimea, o puteți ajusta */
    background-color: #0c0c1e;
    background-image: linear-gradient(135deg, #0c0c1e 0%, #1a1a3a 100%);
    overflow: hidden;
    color: #ffffff;
    /* NOU: Adăugăm colțuri rotunjite și o margine inferioară */
    border-radius: 0.375rem; /* Valoare standard Bootstrap pentru carduri */
    margin-bottom: 1.5rem; /* Valoare standard Bootstrap pentru spațiere (mb-3/mb-4) */
}

/* Restul stilurilor pentru .hero-text, #networkCanvas, etc. rămân la fel */

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se asigură că este în fundal */
}

#smartMeteringHero .container-fluid {
    position: relative;
    z-index: 2; /* Se asigură că textul este deasupra animației */
}

.hero-text {
    padding-left: 30px; /* Spațiere pentru a nu fi lipit de margine */
}

.hero-title {
    font-size: 3rem; /* Dimensiune font principal */
    font-weight: 700;
    text-shadow: 0px 2px 15px rgba(0, 150, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px; /* Limitează lățimea pentru lizibilitate */
    opacity: 0.9;
}

/* Stil pentru buton, se poate personaliza */
.btn-outline-light {
    transition: all 0.3s ease;
}

    .btn-outline-light:hover {
        background-color: #ffffff;
        color: #0c0c1e;
    }


.navbar-nav .divider-vertical {
    height: 40px;
    margin: 0 9px;
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #ffffff;
}

/* menu */
nav {
    margin-bottom: 5px;
}

ul#menu {
    margin: 0;
    padding: 0;
    text-align: center;
}

    ul#menu li {
        margin: 0;
        padding: 0;
    }

/* === Layers & spacing: header + admin bar + breadcrumb === */
header.navbar.sticky-top {
    z-index: 1040;
}

/* Admin menu bar placed under the header (not fixed). If you want it sticky, change to sticky and set top to header height. */
#admin-menu {
    position: relative;
    z-index: 1020;
}

/* Keep user dropdown on top of all bars */
.navbar .dropdown-menu {
    z-index: 2000 !important;
}

/* Breadcrumb strip */
ol.breadcrumb {
    margin: 0;
    padding: .5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* când sari la #loc-consum, ține cont de header/subnav */
#loc-consum {
    scroll-margin-top: 110px;
}
/* ajustează 110px dacă headerul tău e mai mic/mare */

.form-check.no-indent {
    padding-left: 0;
}

    .form-check.no-indent .form-check-input {
        margin-left: 0;
    }

/* pune asta în Site.css */
/*.container-custom-width,
.page-wrap {
    max-width: 100% !important;
    width: 100%;
}*/