/**
 * GPU-M Log Analyzer - Dark Mode Styles
 * Author: Bogdan Anton - GraphixLAB CH
 * Contact: contact@graphixlab.ch
 * Copyright Â© 2025 GraphixLAB CH. All rights reserved.
 * Optimized Dark Mode styling.
 */

/* ======= Dark Mode Global Styling ======= */
.dark-mode {
    background-color: #09121e;
    color: #fff;
}

/* ======= Main Container ======= */
.dark-mode .container {
    background: #0d1b2d;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* ======= Headings ======= */
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4 {
    color: white;
}

/* ======= Header ======= */
.dark-mode .header-left a,
.dark-mode .header-right a {
    color: #e0e0e0;
}

.dark-mode .header-left a:hover,
.dark-mode .header-right a:hover {
    color: #2f68bd;
}

/* ======= Tables ======= */
.dark-mode table {
    background-color: #0d1b2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode th {
    background: #09121e;
    color: white;
    font-weight: bold;
}

.dark-mode td {
    border-color: #555;
    background-color: #09121e;
}

/* ======= Buttons ======= */
.dark-mode button {
    background-color: #fff;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.dark-mode button:hover {
    background-color: #2f68bd;
    transform: scale(1.05);
}

/* ======= Dark Mode Floating Button ======= */
.floating-dark-mode {
    position: fixed;
    top: 80px;
    right: 100px;
    background-color: #232323;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 100%;
    cursor: pointer;
    font-size: 18px;
    z-index: 500;
}

.floating-dark-mode:hover {
    background-color: #2f68bd;
    transform: scale(1.1);
}

/* ======= Dark Mode Charts & Graphs ======= */
.dark-mode .chart-box {
    background: #09121e;
    border: 0px solid #444;
}

.dark-mode .gpu-legend {
    color: #fff; 
}

.dark-mode .chart-box h2 {
    color: white;
}

/* Chart Axes & Grid Lines */
.dark-mode .chart-container .chartjs-render-monitor {
    color: white !important;
}

.dark-mode .chart-box .grid-line {
    stroke: white;
}

/* Chart Tooltip */
.dark-mode .chartjs-tooltip {
    background: rgba(50, 50, 50, 0.9) !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 8px;
}

.dark-mode .min-max {
  font-size: 16px;
  color: #fff;
  display: block;
  margin-top: 5px;
  text-align: center;
}

.dark-mode .min-max strong {
  color: #fff;
}

.dark-mode .custom-file-button {
  background-color: #fff;
  color: #232323;
}

.dark-mode #fileName {
  font-size: 14px;
  color: #fff;
}


.dark-mode #preloader {
    background-color: #09121e;
}

.dark-mode .graph-loader {
    border: 5px solid white; /* White */
    border-top-color: transparent;
}


body.dark-mode #gpuDropdown {
    background: #222;
    color: #fff;
    border-color: #1e90ff;
}

body.dark-mode #gpuDropdown:hover {
    border-color: #00aaff;
}

body.dark-mode #gpuDropdown:focus {
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
}

/* Customizing Dropdown Options */
#gpuDropdown option {
    background: #fff;
    color: #333;
}

/* Dark Mode Options */
body.dark-mode #gpuDropdown option {
    background: #333;
    color: #fff;
}

.dark-mode .file-upload {
    border: 2px solid #fff;
    padding-right: 10px;
}

/* 🌙 Stilizare pentru pragurile oficiale în Dark Mode */
.dark-mode .graph-subtitle {
    color: #fff; /* Text alb pentru vizibilitate */
}

/* 🌙 Titlul pragurilor oficiale */
.dark-mode .subtitle-title {
    color: #fff; /* Text alb */
}

/* 🌙 Pragurile oficiale (aliniate pe aceeași linie) */
.dark-mode .subtitle-values {
    display: flex;
    align-items: center;
    gap: 20px; /* Spațiu între pragurile safe, warning și danger */
}

/* 🌙 Stilizare praguri individuale */
.dark-mode .threshold {
    font-weight: 700;
}

/* 🌙 Puncte colorate pentru Dark Mode */
.dark-mode .safe-dot { background-color: #0f5132; } /* Verde închis */
.dark-mode .warning-dot { background-color: #b8860b; } /* Portocaliu închis */
.dark-mode .danger-dot { background-color: #8b0000; } /* Roșu închis */


/* Stil pentru alinierea containerelor */
.dark-mode .container-row {
    background-color: #09121e;
}
