/* Star Citizen Blueprint Collector - Dark Mode Theme */

.dark-mode-container {
    background-color: #0d1117;
    min-height: 100vh;
    color: #c9d1d9;
}

.dark-mode-container h1,
.dark-mode-container h2,
.dark-mode-container h3,
.dark-mode-container h4,
.dark-mode-container h5 {
    color: #f0f6fc;
}

.dark-mode-container p.text-muted {
    color: #8b949e !important;
}

.dark-mode-container .card {
    background-color: #161b22;
    border-color: #30363d;
}

.dark-mode-container .card-header.bg-light {
    background-color: #21262d !important;
    color: #f0f6fc;
}

.dark-mode-container .card-body {
    color: #c9d1d9;
}

.dark-mode-container .btn-outline-secondary {
    color: #c9d1d9;
    border-color: #30363d;
}

.dark-mode-container .btn-outline-secondary:hover {
    background-color: #21262d;
    border-color: #8b949e;
    color: #f0f6fc;
}

.dark-mode-container .text-muted {
    color: #8b949e !important;
}

.dark-mode-container .spinner-border.text-primary {
    --bs-spinner-color: #58a6ff;
}

.dark-mode-container .form-check-input {
    background-color: #21262d;
    border-color: #30363d;
}

.dark-mode-container .form-check-input:checked {
    background-color: #58a6ff;
    border-color: #58a6ff;
}

.dark-mode-container .text-secondary {
    color: #8b949e !important;
}

.dark-mode-container .fw-semibold.text-primary {
    color: #58a6ff !important;
}

.dark-mode-container .badge.bg-primary {
    background-color: #58a6ff !important;
}

.grade-A { background-color: #9b59b6 !important;    color: white; }
.grade-B { background-color: #3498db !important;    color: white; }
.grade-C { background-color: #2ecc71 !important;    color: white; }
.grade-D,
.grade-bespoke { background-color: #ecf0f1 !important;    color: black; }

.slot-type-indicator {
    display: inline-block;
    width: 4px;
    height: 16px;
    margin-right: 6px;
    border-radius: 2px;
}

.slot-quantum_drive    { background-color: #e74c3c; }
.slot-power_plant      { background-color: #f39c12; }
.slot-shield_generator { background-color: #3498db; }
.slot-cooler           { background-color: #1abc9c; }

.tier-industrial  { background-color: #e2d524 !important; color: black !important; }
.tier-military    { background-color: #2a6617 !important; color: white !important; }
.tier-stealth     { background-color: #121213 !important; color: white !important; }
.tier-civilian    { background-color: #afc6f7 !important; color: white !important; }
.tier-competition { background-color: #940000 !important; color: white !important; }


.dark-mode-container .alert-success {
    background-color: rgba(47, 114, 91, 0.2);
    color: #3fb950;
    border-color: rgba(47, 114, 91, 0.6);
}

.dark-mode-container .alert-danger {
    background-color: rgba(158, 28, 35, 0.2);
    color: #f85149;
    border-color: rgba(158, 28, 35, 0.6);
}

.dark-mode-container .alert-warning {
    background-color: rgba(178, 125, 3, 0.2);
    color: #d29922;
    border-color: rgba(178, 125, 3, 0.6);
}

.dark-mode-container .alert-info {
    background-color: rgba(26, 140, 219, 0.2);
    color: #58a6ff;
    border-color: rgba(26, 140, 219, 0.6);
}

.dark-mode-container .progress {
    background-color: #21262d;
}

.dark-mode-container .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Ingredient Tooltip Styles */
.ingredient-tooltip {
    position: fixed;
    z-index: 9999;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.ingredient-tooltip .tooltip-header h6 {
    color: #f0f6fc;
    font-size: 1rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
    margin-bottom: 12px !important;
}

.ingredient-tooltip .tooltip-table {
    color: #c9d1d9;
    font-size: 0.85rem;
}

.ingredient-tooltip .tooltip-table th {
    background-color: #21262d !important;
    color: #f0f6fc;
    border-color: #30363d !important;
    font-weight: 600;
    padding: 8px 6px;
}

.ingredient-tooltip .tooltip-table td {
    background-color: transparent;
    border-color: #30363d !important;
    padding: 8px 6px;
    vertical-align: middle;
}

.ingredient-tooltip .tooltip-footer small {
    color: #8b949e;
    font-style: italic;
}

/* Cursor for items with ingredient info */
.item-with-ingredients {
    cursor: help;
}

.item-with-ingredients:hover {
    text-decoration: underline;
}
