﻿
/* width */
#offcanvasExample ::-webkit-scrollbar {
    width: 5px;
}

/* Track */
#offcanvasExample ::-webkit-scrollbar-track {
/*    box-shadow: inset 0 0 5px grey;*/
    /*border-radius: 5px;*/
}

/* Handle */
#offcanvasExample ::-webkit-scrollbar-thumb {
    background: #466051;
    border-radius: 5px;
}

   

.btn-yellow{
    background-color:var(--primary-green);
    color:black;
    border:none;
}

.btn-yellow:hover{
    background-color:var(--dark-green);
}

.border-primary{
    border-color:var(--primary-green)!important;

}

.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-primary:hover {
    background-color: var(--dark-green);
}



#home-dashboard {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

h2, h5 {
    color: var(--primary-black);
    font-weight: 600;
}

.dash-block {
    background: var(--lighter-gray);
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52, 54, 67, 0.1);
}

.dash-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

canvas {
    max-width: 100%;
}


.geolocation > div{
    position: relative;
    height:100%;
}
.geolocation {
  
height: 700px;

}

.leaflet-popup-content-wrapper {
    background: var(--primary-white);
    color: var(--primary-black);
    font-size: 0.9rem;
}

#siteMap{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    bottom:0;
    right:0;
}

.metric-card {
    background-color: var(--medium-gray);
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
}

.metric-title {
    font-size: 0.875rem;
    color: var(--primary-green);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: bold;
}

.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
    
    .hide

{
    visibility: hidden;
  
}

.show {
    visibility: visible;
   
}
/****************Video*******************/

.video-container{
    width:200px;
    height:200px;
    position:relative;
}

.video{
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    height:100%;
    width:100%;
}

/*Login*/

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
color: var(--dark-green);
text-decoration: underline;
}


.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/*Card layout*/

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
    color: var(--dark-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/*Crud forms*/


.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
  
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.form-div {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.form-card {
   
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 2rem;
}

.form-label {
    font-weight: 500;
/*    color: var(--primary-green);*/
    margin-bottom: 0.5rem;
}
/*
.form-control, .form-select {
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
*/
/*    .form-control:focus, .form-select:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.25rem rgba(58, 169, 52, 0.1);
    }*/

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--primary-green);
}

    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/*delete form*/

.delete-form {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.delete-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.delete-page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.delete-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 2rem;
}

.warning-banner {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.activate{
   
    border-left: 4px solid var(--danger-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.warning-title {
    color: var(--danger-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-text {
    color: #6c757d;
    margin: 0;
}

.del-info {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

    .info-section:last-child {
        margin-bottom: 0;
    }

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .info-item:last-child {
        margin-bottom: 0;
    }

.info-label {
    font-weight: 500;
    color: var(--primary-color);
    width: 150px;
}

.info-value {
    color: #6c757d;
}

.impact-section {
    background: #fff3cd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.impact-title {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .impact-list li {
        color: #856404;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .impact-list li:last-child {
            margin-bottom: 0;
        }
/*Add butttons*/
.add-btn .btn-yellow, .add-btn .btn-primary{
    width:max-content !important;
}
/*Site Management*/

/* Layout Styles */
.site-container {
/* position:absolute;
 top:69px;
 left:0;
 right:0;
 bottom:0;*/
 width:100%;
 height:100vh;
/* height: 100%;*/
display: flex;

}

.site-management {
    width: 300px;
    height: 100%;
    background: white;
    border-right: 1px solid #dee2e6;
    padding: 1rem;
/*    overflow-y: auto;*/
    transition: transform 0.3s ease;
}

    /* Custom Scrollbar Styling */
    .site-management::-webkit-scrollbar {
        width: 8px;
    }

    .site-management::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .site-management::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

        .site-management::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* For Firefox */
.site-management {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.map-container {
    flex: 1;
    height: 100%;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--dark-green);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(58, 169, 52, 0.25);
}

/* Site List Styles */
.site-list {
    margin-top: 1rem;
    height:100%;
}

.site-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .site-card:hover {
        border-color: var(--primary-green);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .site-card.active {
        border-color: var(--primary-green);
        background-color: rgba(58, 169, 52, 0.05);
    }

.site-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--primary-green);
}

.status-inactive {
    background-color: #dc3545;
}

/* Custom Map Controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Custom Pin Styles */
.custom-pin {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pin-site {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23267F4A"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.pin-employee-in {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233aa934"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.pin-employee-out {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc3545"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.pin-shadow {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }

    .site-management {
        position: fixed;
        left: -300px;
        top: 60px;
        bottom: 0;
        z-index: 1020;
        transition: left 0.3s ease;
    }

        .site-management.show {
            left: 0;
        }
}