/* GLOBAL */

.md-grid {
    max-width: 1440px;
}

[data-md-color-scheme="slate"] .md-banner {
    background-color: #b3b348 !important;
}

/* Custom style for dark/light modes */

[data-md-color-scheme="default"] {
  --md-default-bg-color: #FFFFFF;
  --md-primary-bg-color: #FFFFFF;
  --md-default-fg-color: #0B111C;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0B111C;
  --md-default-fg-color: #D0D4DB;
}

[data-md-color-scheme="default"] .md-tabs {
background-color: white !important;
color: #0B111C;}

[data-md-color-scheme="default"] .md-header {
background-color: white !important;
color: #0B111C;}

[data-md-color-scheme="default"] .md-search__input {
background-color: #D0D4DB;
color: #0B111C;}

[data-md-color-scheme="slate"] .md-search__input {
background-color: #2C3746;
color: #D0D4DB;}

.md-tabs {
	border-bottom: .05rem solid #00000012;
}

.md-header__button.md-logo img {
    transition: opacity 0.25s ease-in-out;
}

[data-md-color-scheme="default"] .md-header__button.md-logo img {
    content: url("../assets/irisity_logo_lightmode.png");
}

[data-md-color-scheme="slate"] .md-header__button.md-logo img {
    content: url("../assets/irisity_logo_darkmode.png");
}

[data-md-color-scheme="default"] .alert-header {
  color: black !important;
  background-color: "orange" !important;
}

[data-md-color-scheme="slate"] .alert-header {
  color: black !important;
  background-color: "blue" !important;
}

/* HARDWARE CALCULATOR */

.hwc-container {
    display: flex;
    gap: 16px;
    font-size: 0.9em;
    color: #334155;
}

/* asd */
[data-md-color-scheme="slate"] nav.md-tabs {
    color: var(--md-default-fg-color);
    background-color: var(--md-default-bg-color);
}

[data-md-color-scheme="slate"] header.md-header {
    color: var(--md-default-fg-color);
    background-color: var(--md-default-bg-color);
}

[data-md-color-scheme="slate"] form.md-search__form {
    background-color: var(--md-default-fg-color);
}
/* asd end */

[data-md-color-scheme="slate"] .hwc-container {
    color: #e2e8f0;
}

.hwc-help-panel {
    flex: 1;
    min-width: 200px;
}

.hwc-config-panel {
    width: 460px;
    flex-shrink: 0;
}

.hwc-result-panel {
    width: 320px;
    flex-shrink: 0;
}

.hwc-panel {
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-md-color-scheme="slate"] .hwc-panel {
    border-color: #334155;
    background: #1a202c;
}

.hwc-help-item {
    margin-bottom: 16px;
}

.hwc-help-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

[data-md-color-scheme="slate"] .hwc-help-title {
    color: #e2e8f0;
}

.hwc-config-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hwc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hwc-field label {
    font-weight: 500;
    color: #475569;
    font-size: 0.95em;
}

[data-md-color-scheme="slate"] .hwc-field label {
    color: #e2e8f0;
}

.hwc-container select, .hwc-container input {
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9em;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

[data-md-color-scheme="slate"] .hwc-container select, [data-md-color-scheme="slate"] .hwc-container input {
    border-color: #334155;
}

.hwc-container select:hover, .hwc-container input:hover {
    border-color: #94a3b8;
}

.hwc-container select:focus, .hwc-container input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hwc-result-item {
    margin-bottom: 12px;
}

.hwc-result-item:last-child {
    margin-bottom: 0;
}

.hwc-result-category {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

[data-md-color-scheme="slate"] .hwc-result-category {
    color: #e2e8f0;
}

.hwc-sub-item {
    margin-left: 16px;
    margin-bottom: 4px;
    color: #475569;
}

[data-md-color-scheme="slate"] .hwc-sub-item {
    color: #e2e8f0;
}

.hwc-util-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

[data-md-color-scheme="slate"] .hwc-util-bar {
    background: #334155;
}

.hwc-util-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s;
}

[data-md-color-scheme="slate"] .hwc-util-fill {
    background: #60a5fa;
}

.hwc-util-text {
    font-size: 0.8em;
    color: #64748b;
    margin-top: 4px;
}

[data-md-color-scheme="slate"] .hwc-util-text {
    color: #cbd5e1;
}

.hwc-panel-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

[data-md-color-scheme="slate"] .hwc-panel-title {
    color: #e2e8f0;
    border-color: #334155;
}

@media (max-width: 1200px) {
    .hwc-container {
        flex-wrap: wrap;
    }

    .hwc-help-panel {
        width: 100%;
        min-width: 0;
    }

    .hwc-config-panel, .hwc-result-panel {
        flex: 1;
        width: auto;
        min-width: 320px;
    }
}
