/* Custom Radio */
.custom-radio .form-check-input:checked {
    background-color: #ff9800;
    border-color: #ff9800;
}

.custom-radio .form-check-label {
    color: #ff9800 !important;
    font-weight: bold;
}

/* KPI Center */
.kpi-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

/* Loader Animation */
.loader {
    border: 10px solid #222;
    border-top: 12px solid #ff9800;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 0.5s linear infinite;
}

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

/* Date Display */
.date-display {
    background: #000;
    padding: 12px 24px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    margin-bottom: 24px;
    letter-spacing: 1px;
    border: 1px solid #ff9800;
}

.date-display-text {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    background-color: #1a1a1a !important;
    border: 1px solid #ff9800 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 280px !important;
}

/* Scrollbar styling */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
    background: grey;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: grey;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(165, 135, 90, 0.4);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 152, 0, 0.8);
}

.dropdown-item {
    color: #fff !important;
    font-weight: 500;
    padding: 10px 16px;
    font-size: 0.95rem;
    background-color: #2a2a2a !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(114, 100, 79, 0.8) !important;
    color: #ff9800 !important;
}

.dropdown-item.active,
.dropdown-item.active:focus {
    background-color: #bda684 !important;
    color: #000 !important;
}

/* Dropdown Toggle Button */
.btn-primary {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: #000 !important;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #bdab99 !important;
    border-color: #ff7f00 !important;
}

/* Responsive helpers */
.page-title {
    letter-spacing: 2px;
}

.graph-responsive {
    height:480px;
}

.graph-forecast {
    height: 340px;
}

.kpi-small {
    height: 120px;
}

.temp-card {
    height: 500px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-buttons .btn {
    white-space: nowrap;
}

/* KPI Card Styling */
.kpi-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 152, 0, 0.15);
}

.kpi-card:hover {
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.35);
    transform: translateY(-4px);
    border-color: rgba(255, 152, 0, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .graph-responsive {
        height: 380px !important;
    }
    
    .graph-forecast {
        height: 300px !important;
    }
    
    .temp-card {
        height: 390px !important;
    }
    
    .kpi-small {
        height: 110px !important;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem !important;
    }
    
    .graph-responsive {
        height: 320px !important;
    }
    
    .graph-forecast {
        height: 280px !important;
    }
    
    .temp-card {
        height: 500px !important;
    }
    
    .kpi-small {
        height: 100px !important;
    }
    
    .action-buttons {
        justify-content: stretch;
    }
    
    .action-buttons .btn {
        flex: 1 1 auto;
    }
    
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* Layout sizes for the current dashboard (override helpers above) */
/* Responsive helpers */
.page-title { letter-spacing: 2px; }
.graph-responsive { height: 640px; }
.graph-forecast { height: 320px; }
.kpi-small { height: 72px; }
.temp-card { height: 500px; }
.action-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.action-buttons .btn { white-space: nowrap; }
@media (max-width: 992px) {
  .graph-responsive { height: 560px !important; }
  .graph-forecast { height: 300px !important; }
  .temp-card { height: 390px !important; }
  .kpi-small { height: 70px !important; }
}
@media (max-width: 768px) {
  .page-title { font-size: 1.5rem !important; }
  .graph-responsive { height: 420px !important; }
  .graph-forecast { height: 260px !important; }
  .temp-card { height: 500px !important; }
  .kpi-small { height: 100px !important; }
  .action-buttons { justify-content: stretch; }
  .action-buttons .btn { flex: 1 1 auto; }
  .container, .container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
}
