html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Light mode styles with background */
body {
  background-color: #ffffff;
  background-image: url('../images/background_light.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #000000;
}

/* Light mode overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    pointer-events: none;
}

.navbar {
  background-color: rgba(248, 249, 250, 0.95) !important;
  border-color: #e3e3e3;
  backdrop-filter: blur(10px);
}

.navbar-brand,
.nav-link {
  color: #000000;
}

.footer {
  background-color: rgba(248, 249, 250, 0.95);
  border-color: #e3e3e3;
  color: #000000;
}

/* === CARDS SECTION === */
.card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.card-glass {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.card-glass .card-header {
    background-color: rgba(248, 249, 250, 0.6) !important;
}

.card-glass .card-body {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* === FORM CONTROLS SECTION === */
.customForm-input-width {
    width: 25em;
    margin: 0 auto;
    text-align: center;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.form-select {
    width: 10em;
    margin: 0 auto;
    text-align: center;
}

/* === UTILITY CLASSES === */
.custom-img-size {
    width: 20%;
}

.info-box {
    height: 10em;
    overflow-y: auto;
    border: 1px solid #808080;
    padding: 0.5em;
    color: black;
    background-color: rgba(47, 140, 251, 0.4);
    text-align: left;
}




/* Progress tooltip styles */
.progress-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1050;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .progress-tooltip.show {
        opacity: 1;
    }

    .progress-tooltip.hide {
        opacity: 0;
    }

.progress-bar-mini {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

    .progress-bar-mini .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #28a745, #20c997);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

/* ===== BOOTSTRAP 5.3+ DARK MODE STYLES ===== */
[data-bs-theme="dark"] body {
    background-color: #121212;
    background-image: url('../images/background_dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff !important; /* Force white text in dark mode */
}

[data-bs-theme="dark"] body::before {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Dark mode headings - IMPORTANT FOR YOUR ISSUE */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #ffffff !important; /* This fixes the black h1 issue */
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(31, 31, 31, 0.95) !important;
    border-color: #333333;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .nav-link {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .footer {
    background-color: rgba(31, 31, 31, 0.95);
    border-color: #333333;
    color: #ffffff;
}

[data-bs-theme="dark"] .card {
    background-color: rgba(31, 31, 31, 0.95);
    border-color: #333333;
    color: #ffffff;
    backdrop-filter: blur(5px);
}

[data-bs-theme="dark"] .card-glass {
    background-color: rgba(31, 31, 31, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .card-glass .card-header {
    background-color: rgba(42, 42, 42, 0.6) !important;
}

[data-bs-theme="dark"] .card-glass .card-body {
    background-color: rgba(31, 31, 31, 0.4) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: rgba(31, 31, 31, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: rgba(31, 31, 31, 0.8) !important;
    border-color: #007bff;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

[data-bs-theme="dark"] .customForm-input-width {
    background-color: rgba(31, 31, 31, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-bs-theme="dark"] .info-box {
    border: 1px solid #333333;
    color: #adb5bd;
    background-color: rgba(0, 0, 0, 0.95);
}

/* Dark mode form labels */
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .control-label {
    color: #adb5bd !important;
}

/* Dark mode buttons - let Bootstrap handle most, but override if needed */
[data-bs-theme="dark"] .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}


/* FIXED Content area */
.user-content {
    margin-left: 250px;
    padding: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: calc(100vw - 250px);
    height: calc(100vh - 76px);
    /*min-height:calc(100vh - 176px);*/
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    /* Ensure no horizontal scrolling */
    .user-content > * {
        max-width: 100%;
    }
@media (max-width: 991.98px) {
    .user-content {
        margin-left: 0 !important;
        width: 100vw !important;
        padding: 0rem;
        padding-left: 0rem;
        padding-right: 0rem;
    }
}
/* Wyrównanie optionSkewTableContainer z górnym cardem */
#optionSkewTableContainer {
    margin-left: 0rem;
    margin-right: 0rem;
    padding-left: 0rem;
    padding-right: 0rem;
}

    /* Upewnij się, że card w table container ma takie same marginesy jak górny card */
    #optionSkewTableContainer .card {
        margin-bottom: 0rem;
        margin-left: 0rem;
        margin-right: 0rem;
        padding-left: 0rem;
        padding-right: 0rem;
    }


