/* AcidBaseLab Custom Styles */
.acid-base-lab-container {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bg-gradient-warning-subtle {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
}

/* Tab Navigation */
.acid-base-lab-container .nav-pills .nav-link {
    color: #4b5563;
    transition: all 0.2s ease-in-out;
}

.acid-base-lab-container .nav-pills .nav-link:hover {
    background-color: rgba(217, 119, 6, 0.08);
    color: #d97706;
}

.acid-base-lab-container .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* ==================== Virtual Beaker & Liquids ==================== */
.beaker-glass {
    position: relative;
    width: 80px;
    height: 120px;
    border: 3px solid #64748b;
    border-top: none;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0,0,0,0.06);
}

.beaker-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background-color: rgba(253, 224, 71, 0.5); /* Default lemon yellow */
    transition: background-color 0.4s ease, height 0.4s ease;
}

.beaker-meniscus {
    position: absolute;
    bottom: calc(70% - 4px);
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* Indicator Strips */
.paper-strip-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.paper-strip {
    width: 22px;
    height: 110px;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top center;
}

.paper-strip.dipping {
    transform: translateY(35px);
}

.paper-strip-tip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    transition: background-color 0.4s ease;
}

/* Blue Litmus Default */
.strip-blue-litmus {
    background-color: #3b82f6;
}
.strip-blue-litmus .paper-strip-tip {
    background-color: #3b82f6;
}

/* Red Litmus Default */
.strip-red-litmus {
    background-color: #ef4444;
}
.strip-red-litmus .paper-strip-tip {
    background-color: #ef4444;
}

/* Turmeric Paper Default */
.strip-turmeric {
    background-color: #facc15;
}
.strip-turmeric .paper-strip-tip {
    background-color: #facc15;
}

/* China Rose Dropper */
.dropper-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease;
}

.dropper-wrapper.dripping {
    transform: translateY(20px);
}

.dropper-bulb {
    width: 24px;
    height: 28px;
    background: #ef4444;
    border-radius: 12px 12px 4px 4px;
}

.dropper-stem {
    width: 10px;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #94a3b8;
    border-top: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dropper-liquid {
    width: 100%;
    height: 60%;
    background: #d946ef; /* Magenta China Rose */
}

.dropper-tip {
    width: 4px;
    height: 12px;
    background: #94a3b8;
}

/* pH Meter Gradient Bar */
.bg-gradient-ph {
    background: linear-gradient(90deg, #dc2626 0%, #ea580c 25%, #16a34a 50%, #0284c7 75%, #7c3aed 100%);
}

/* Canvas styling */
.canvas-container canvas {
    touch-action: none;
    user-select: none;
}

/* Scenario card hover */
.scenario-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .bg-gradient-warning-subtle {
    background: linear-gradient(135deg, #2a1f07 0%, #3d2c0a 50%, #4a360c 100%);
    color: #fef08a;
}

[data-bs-theme="dark"] .test-stage {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-bs-theme="dark"] .beaker-glass {
    border-color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
}
