/* Montana Water Bottle Loader */
#loader_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.montana-bottle-loader {
    position: relative;
    width: 120px;
    height: 140px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #244289;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* Water Bottle Shape */
.bottle {
    position: relative;
    width: 50px;
    height: 90px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 248, 255, 0.8) 30%,
        rgba(230, 245, 255, 0.7) 70%,
        rgba(220, 240, 255, 0.8) 100%);
    border-radius: 25px 25px 8px 8px;
    border: 1px solid rgba(200, 220, 240, 0.6);
    overflow: hidden;
    box-shadow: 
        inset -2px 0 8px rgba(255, 255, 255, 0.6),
        inset 2px 0 8px rgba(0, 100, 200, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transform-style: preserve-3d;
}

/* Bottle Neck */
.bottle::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 20px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 248, 255, 0.8) 100%);
    border-radius: 2px;
    border: 1px solid rgba(200, 220, 240, 0.6);
    box-shadow: 
        inset -1px 0 4px rgba(255, 255, 255, 0.6),
        inset 1px 0 4px rgba(0, 100, 200, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bottle Cap */
.bottle::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 12px;
    background: linear-gradient(145deg, #244289 0%, #1a2f5f 100%);
    border-radius: 3px 3px 1px 1px;
    border: 1px solid #1a2f5f;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    z-index: 3;
}

/* Plastic Highlight Effect */
.bottle .highlight {
    position: absolute;
    top: 10px;
    left: 8px;
    width: 6px;
    height: 60px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 3px;
    filter: blur(0.5px);
}

/* Water Animation */
.water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, 
        rgba(100, 180, 255, 0.6) 0%,
        rgba(70, 150, 255, 0.7) 30%,
        rgba(50, 120, 255, 0.8) 70%,
        rgba(30, 100, 255, 0.9) 100%);
    border-radius: 0 0 6px 6px;
    animation: fillWater 2.5s ease-in-out infinite;
    box-shadow: 
        inset 0 0 15px rgba(255, 255, 255, 0.4),
        inset -2px 0 8px rgba(0, 100, 200, 0.3);
}

/* Montana Label */
.montana-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #244289;
    font-family: 'Arial', sans-serif;
    font-size: 8px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid rgba(36, 66, 137, 0.3);
}

/* Loading Text */
.loading-text {
    color: #244289;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
    text-align: center;
    margin: 0;
}

/* Animations */
@keyframes fillWater {
    0% { height: 15%; }
    50% { height: 70%; }
    100% { height: 15%; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .montana-bottle-loader {
        width: 100px;
        height: 120px;
        padding: 15px;
    }
    
    .bottle {
        width: 40px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .bottle .highlight {
        width: 4px;
        height: 45px;
        left: 6px;
    }
    
    .loading-text {
        font-size: 12px;
    }
}