/* ==========================================================================
   VOID GROUND - CHEMICAL STORAGE & GLASS CONTAINER STYLES
   Theme: Old School Leonardo da Vinci Manuscript & Alchemical Laboratory
   ========================================================================== */

/* 1. TOOLBOX STORAGE BUTTON & BADGE */
.storage-button {
    position: relative;
    color: #edd6a4;
}

.storage-badge-count {
    position: absolute;
    top: -9px;
    right: -8px;
    background: #1b4d2e;
    border: 1.5px solid #22c55e;
    color: #f7eed8;
    font-size: 19px; /* Scaled +100% from 9.5px for mobile legibility */
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 1px 7px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 6px rgba(34, 197, 94, 0.35);
    line-height: 24px;
    height: 28px;
    min-width: 32px;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

/* 2. GLASS CONTAINER IN-VOID INTERACTION */
.apparatus-glass-container {
    position: absolute;
    pointer-events: all;
    user-select: none;
}

.apparatus-glass-canvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glass-vessel-bg {
    fill: #1e1b18;
    fill-opacity: 0.65;
    stroke: #806840;
    stroke-width: 1.5;
}

.glass-vessel-stroke {
    stroke: #d4af37;
    stroke-width: 2.2;
    fill: none;
}

/* Floating Green Checklist Seal */
.apparatus-glass-seal-container {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: all;
}

.apparatus-capture-seal {
    display: none;
    align-items: center;
    gap: 6px;
    background: #112d1b;
    border: 2px solid #4ade80;
    border-radius: 20px;
    padding: 4px 10px;
    color: #e6f9ed;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.4), inset 0 0 8px rgba(74, 222, 128, 0.2);
    font-family: 'Cinzel', 'Palatino Linotype', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), box-shadow 0.2s ease;
}

.apparatus-capture-seal.is-ready {
    display: flex !important;
    animation: sealPulse 1.6s infinite ease-in-out;
}

.apparatus-capture-seal:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.8), inset 0 0 12px rgba(74, 222, 128, 0.4);
    background: #163a23;
}

.seal-check-svg {
    width: 20px;
    height: 20px;
}

.seal-bg {
    fill: #15803d;
}

.seal-border {
    fill: none;
    stroke: #86efac;
    stroke-width: 1.5;
}

.seal-tick {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seal-tag {
    text-transform: uppercase;
}

/* Glass Status Tag at Bottom (+100% enlarged) */
.apparatus-glass-status-tag {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #231e1a;
    border: 1.5px solid #786443;
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    color: #cdba96;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
    z-index: 10;
}

.glass-status-label {
    font-size: 20px;
    line-height: 1.2;
}

.glass-status-label.status-ready {
    color: #4ade80;
    font-weight: 700;
}

.glass-status-label.status-warning {
    color: #f87171;
}

.glass-status-label.status-empty {
    color: #a39580;
}

@keyframes sealPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(74, 222, 128, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 22px rgba(74, 222, 128, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(74, 222, 128, 0.4); }
}

/* 3. CHEMICAL STORAGE MODAL (Leonardo da Vinci Journal Spread) */
.storage-journal-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #100804 url('assets/wood-table.jpg') center center / cover no-repeat !important;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.storage-journal-modal.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.storage-journal-box {
    width: 96% !important;
    max-width: 1440px !important;
    height: 94% !important;
    max-height: 820px !important;
    background: #f4ecd8;
    background-image: 
        radial-gradient(#e5d8b8 15%, transparent 16%),
        radial-gradient(#e2d3b0 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    border: 3px double #5a462b;
    border-radius: 6px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75), inset 0 0 80px rgba(120, 85, 45, 0.35);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 32px;
    color: #382c1e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

/* Brass Ornament Corners */
.storage-brass-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid #8c6e3b;
    pointer-events: none;
}
.storage-brass-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.storage-brass-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.storage-brass-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.storage-brass-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* Modal Header */
.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #9c835a;
    padding-bottom: 12px;
    margin-bottom: 14px;
    position: relative;
}

.storage-header-left {
    display: flex;
    flex-direction: column;
}

.storage-title {
    font-size: 40px; /* Scaled +40% from 28.5px */
    letter-spacing: 0.8px;
    color: #3b2210;
    margin: 0;
    font-weight: 900;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.storage-capacity-bar {
    font-size: 25px; /* Scaled +40% from 18px */
    color: #432e18;
    margin-top: 6px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.4px;
}

.storage-capacity-num {
    font-weight: 900;
    color: #8c2a1a;
    font-size: 26px; /* Scaled +40% from 18.5px */
}

.storage-close-btn {
    background: #451a03;
    border: 2.5px solid #8c5d2e;
    border-radius: 50%;
    width: 63px; /* Scaled +50% from 42px */
    height: 63px;
    cursor: pointer;
    font-size: 38px; /* Scaled +50% from 26px */
    line-height: 1;
    color: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(69, 26, 3, 0.45);
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.storage-close-btn:hover {
    background: #78350f;
    color: #ffffff;
    border-color: #b45309;
    transform: rotate(90deg) scale(1.06);
}

/* 4. CAROUSEL SLIDE CONTAINER */
.storage-carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.storage-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    height: 100%;
}

/* 5. ITEM CARD: CHEMICAL BOTTLE */
.storage-item-card {
    background: rgba(255, 252, 245, 0.88);
    border: 1.5px solid #c2ad82;
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(160, 130, 80, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    gap: 8px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.storage-item-card:hover {
    transform: translateY(-2px);
    border-color: #8c6e3b;
    box-shadow: inset 0 0 25px rgba(160, 130, 80, 0.25), 0 6px 16px rgba(60, 45, 25, 0.2);
}

.storage-item-card.empty-slot {
    border: 1.5px dashed #cbb993;
    background: rgba(244, 237, 222, 0.45);
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.storage-bottle-container {
    width: 115px;
    height: 135px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.storage-bottle-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.storage-stack-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    background: #251b13;
    border: 2px solid #d4af37;
    color: #f7eed8;
    font-size: 22px; /* Scaled 2x from 11px */
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 3px 12px;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.5px;
    line-height: 1.15;
    white-space: nowrap;
}

.storage-stack-badge.max {
    background: #7f1d1d;
    border-color: #fde047;
    color: #fef08a;
    font-size: 22px; /* Scaled 2x from 11px */
    font-weight: 900;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6), 0 3px 8px rgba(0, 0, 0, 0.65);
}

.storage-molecule-preview {
    position: absolute;
    top: 88px;
    left: 50%;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.storage-molecule-preview .molecule {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.44) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.storage-item-info {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.storage-molecule-formula {
    font-size: 26px; /* Scaled +30% from 20px */
    font-weight: 900;
    color: #2b180a;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
}

.storage-molecule-name {
    font-size: 17px; /* Scaled +30% from 13px */
    font-weight: 800;
    color: #523719;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
    max-width: 95%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.storage-release-btn {
    background: #eddcb9;
    border: 1.5px solid #8c6e3b;
    border-radius: 6px;
    color: #2e1a0b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* Scaled +30% from 12px */
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 9px 22px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.storage-release-btn .btn-qty-num {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-size: 17px;
}

.storage-release-btn:hover:not(:disabled) {
    background: #731e18;
    color: #ffffff;
    border-color: #4a110d;
    box-shadow: 0 4px 10px rgba(115, 30, 24, 0.45);
    transform: translateY(-1px);
}

.storage-release-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.storage-release-btn.loading {
    background: #a89472;
    color: #fff;
    cursor: wait;
}

.storage-release-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.storage-empty-title {
    font-size: 17px; /* Scaled +30% from 13px */
    font-weight: 800;
    color: #7d6542;
    letter-spacing: 0.8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.storage-empty-subtitle {
    font-size: 14.5px; /* Scaled +30% from 11px */
    font-weight: 600;
    color: #a08b68;
    font-style: italic;
    letter-spacing: 0.4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.storage-empty-text {
    font-size: 15.5px; /* Scaled +30% from 12px */
    color: #a49171;
    font-style: italic;
    margin-top: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 6. SLIDER / CAROUSEL CONTROLS */
.storage-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #b8a274;
    padding-top: 14px;
    margin-top: 10px;
}

.storage-nav-btn {
    background: #e6dac0;
    border: 1.5px solid #876c40;
    border-radius: 6px;
    padding: 8px 22px;
    font-size: 17px; /* Scaled +30% from 13px */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    color: #402f18;
    cursor: pointer;
    transition: all 0.2s ease;
}

.storage-nav-btn:hover:not(:disabled) {
    background: #876c40;
    color: #f7eed8;
}

.storage-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #b5a484;
}

.storage-pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.storage-page-indicator {
    display: none !important; /* "tulisan di bawah Folio .... hilangin aja" */
    font-size: 17px;
    color: #5a4427;
    font-weight: 600;
}

.storage-page-dots {
    display: flex;
    gap: 8px;
}

.storage-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c7b897;
    border: 1.5px solid #8c734b;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.storage-dot.active {
    background: #731e18;
    border-color: #400f0b;
    transform: scale(1.3);
}

/* Toast Inscription Alert */
.storage-notification-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #1b1612;
    border: 2px solid #c9a759;
    color: #f7edd4;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
    z-index: 10001;
}

.storage-notification-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
