/* General Body & Typography */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #1a1a1a !important; /* Dark gray background */
    font-size: 0.9rem; /* Slightly smaller font size */
    color: #d3d3d3; /* Light gray text */
}

h1, h2, h3, h4, h5, h6 {
    color: #d3d3d3; /* Light gray */
}

/* Form & Input Elements */
.form-label, .card-body p, .card-body a {
    color: #d3d3d3; /* Light gray text */
}

.form-control:focus {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #007bff; /* Blue focus ring */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

table, input, select, textarea, button, .form-control, label, .btn {
    font-size: 0.8rem;
}

/* Buttons */
.btn-primary {
    background-color: #007bff; /* Blue button */
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3;
}

/* Navbar */
.navbar-dark .nav-link {
    color: #d3d3d3;
}
.navbar-dark .nav-link:hover {
    color: #80c1ff;
}

.navbar-brand .logo-container {
    width: 60px;
    height: 40px;
    margin: 0px 0px 7px 14px;
    position: relative;
}

.navbar-brand .logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 123, 255, 0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.navbar-brand .tree {
    width: 100%;
    height: 100%;
}

/* Cards */
.card {
    background-color: #2c2c2c; /* Darker card background */
    border: 1px solid #444; /* Subtle border */
}

.card-body a {
    color: #4dabf7; /* Lighter blue for links */
}
.card-body a:hover {
    color: #80c1ff; /* Even lighter on hover */
}

/* Main Content & Scrollbar */
#MainContent {
    height: calc(100vh - 140px); /* Adjust based on navbar height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 10px;
    padding-top: 16px;
}

#MainContent .row {
    height: 100%;
}

#MainContent::-webkit-scrollbar {
    width: 8px;
}

#MainContent::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

#MainContent::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
    transition: background 0.3s ease-in-out;
}

#MainContent::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Sidebar & Right Panel */
.leftcardtree {
    height: 100%;
    overflow: hidden;
}

.rightdetailscard {
    height: 100%;
    overflow-y: auto;
}

/* Tree (Cluster of Circles) */
.tree {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.tree .node {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

.tree .node:nth-child(1) { background: #003087; top: 1px; left: 20%; animation-delay: 0s; }
.tree .node:nth-child(2) { background: #0044b3; top: 1px; right: 20%; animation-delay: 0.2s; }
.tree .node:nth-child(3) { background: #0056b3; top: 30px; left: 10%; animation-delay: 0.4s; }
.tree .node:nth-child(4) { background: #0066cc; top: 30px; right: 10%; animation-delay: 0.6s; }
.tree .node:nth-child(5) { background: #007bff; top: 35px; left: 40%; animation-delay: 0.8s; }
.tree .node:nth-child(6) { background: #1a88ff; top: 50px; right: 25%; animation-delay: 1s; }
.tree .node:nth-child(7) { background: #4dabf7; top: 70px; left: 15%; animation-delay: 1.2s; }
.tree .node:nth-child(8) { background: #66b3ff; top: 70px; right: 15%; animation-delay: 1.4s; }
.tree .node:nth-child(9) { background: #80c1ff; top: 90px; left: 30%; animation-delay: 1.6s; }
.tree .node:nth-child(10) { background: #99ccff; top: 90px; right: 30%; animation-delay: 1.8s; }

/* Small Node */
.smallnodenode {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

.smallnodenode:nth-of-type(1) { background: #29dbfa; top: -30px; left: -19px; animation-delay: 0s; }
.smallnodenode:nth-of-type(2) { background: #7a98c9; top: -32px; left: -25px; animation-delay: 0.3s; }
.smallnodenode:nth-of-type(3) { background: #4869a9; top: -39px; left: -15px; animation-delay: 0.6s; }

.notetypeheading {
    text-transform: capitalize;
    margin-left: 21px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Overlay */
#globalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Context Menu */
.context-menu, .sub-menu {
    background-color: #2c2c2c;
    color: #d3d3d3;
    border: 1px solid #444;
}
.context-menu li:hover, .sub-menu li:hover {
    background-color: #3a3a3a;
}

/* Pagination */
.dataTables_paginate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #343a40;
    color: #ffffff !important;
    border: 1px solid #495057;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin: 2px;
    transition: background 0.2s ease-in-out;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #495057 !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background-color: #212529;
    color: #6c757d !important;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-weight: bold;
    background-color: #212529;
    border: 1px solid #495057;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background-color: #495057 !important;
    color: #ffffff !important;
}


#usersTable_filter{
    margin:2px 2px 5px 2px;   
}

/* Admin-Only */
.onlyforadmin {
    display: none !important;
}
.form-range {
    width: 100%;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    background-color: #007bff; /* Matches your primary button */
}

.form-range::-moz-range-thumb {
    background-color: #007bff;
}

output {
    color: #d3d3d3;
    font-size: 0.9rem;
}

.currency-wrapper {
    position: relative;
    display: inline-block;
}

.currency-wrapper::before {
    content: attr(data-symbol); /* Pulls from data-symbol */
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-family: monospace;
    color: #333;
}

.currencyval {
    text-align: right;
    padding-right: 10px;
    padding-left: 20px;
    font-family: monospace;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}
.text-right { text-align: right !important; }

#liveDateTime {
    font-weight: bold;
    font-size: 0.85rem;
}

.modal{
    height:auto !important;
}
.text-muted{
    color:#fafafa !important;
}
.orb-glow {
    width: 24px;
    height:24px;
    background-color: #00aaff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.8), 0 0 15px rgba(0, 170, 255, 0.4);
    animation: pulse-orb 1.8s infinite ease-in-out;
    margin: 0 auto;

}
.task-request-orb {
    width: 30px;
    height: 30px;
    background-color: white; /* Light blue */
    border-radius: 50%;
    position: relative;
    animation: pulse-task-orb 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-request-orb .orb-icon {
    color: #0dcaf0;
    font-size: 14px;
}

@keyframes pulse-task-orb {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 202, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 202, 240, 0);
    }
}

@keyframes pulse-orb {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(0, 170, 255, 0.8), 0 0 15px rgba(0, 170, 255, 0.4);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 16px rgba(0, 170, 255, 1), 0 0 30px rgba(0, 170, 255, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(0, 170, 255, 0.8), 0 0 15px rgba(0, 170, 255, 0.4);
    }
}