.calculator-window {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(0, 209, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(0, 209, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.calculator-content {
    padding: 15px;
    background: transparent;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.calculator-display {
    margin-bottom: 15px;
    position: relative;
}

.calculator-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00D1FF, #FF4D8D, #00D1FF);
    border-radius: 12px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

#calculatorInput {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 6px;
    color: #00D1FF;
    font-size: 18px;
    text-align: right;
    padding: 0 10px;
    font-family: 'Inter', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 209, 255, 0.2);
    transition: all 0.3s ease;
}

#calculatorInput:focus {
    outline: none;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 209, 255, 0.4);
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    flex: 1;
}

.calc-btn {
    padding: 10px 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.calc-btn:hover::before {
    left: 100%;
}

.calc-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(0, 209, 255, 0.3);
    border-color: rgba(0, 209, 255, 0.5);
}

.calc-btn:active {
    transform: translateY(0px) scale(1.005);
}

.calc-btn[data-action="number"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #ffffff;
}

.calc-btn[data-action="number"]:hover {
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.3) 0%, rgba(0, 209, 255, 0.1) 100%);
    color: #00D1FF;
}

.calc-btn[data-action="operator"] {
    background: linear-gradient(135deg, #FF9500 0%, #FF7A00 100%);
    color: #ffffff;
    font-weight: 700;
}

.calc-btn[data-action="operator"]:hover {
    background: linear-gradient(135deg, #FFAA33 0%, #FF9500 100%);
    box-shadow: 
        0 10px 25px rgba(255, 149, 0, 0.4),
        0 0 20px rgba(255, 149, 0, 0.3);
}

.calc-btn[data-action="equals"] {
    background: linear-gradient(135deg, #00D1FF 0%, #0099CC 100%);
    color: #ffffff;
    font-weight: 700;
}

.calc-btn[data-action="equals"]:hover {
    background: linear-gradient(135deg, #33DDFF 0%, #00D1FF 100%);
    box-shadow: 
        0 10px 25px rgba(0, 209, 255, 0.4),
        0 0 20px rgba(0, 209, 255, 0.3);
}

.calc-btn[data-action="clear"] {
    background: linear-gradient(135deg, #FF4D8D 0%, #CC3D70 100%);
    color: #ffffff;
    font-weight: 700;
}

.calc-btn[data-action="clear"]:hover {
    background: linear-gradient(135deg, #FF6BA3 0%, #FF4D8D 100%);
    box-shadow: 
        0 10px 25px rgba(255, 77, 141, 0.4),
        0 0 20px rgba(255, 77, 141, 0.3);
}

.calc-btn[data-action="backspace"] {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #ffffff;
    font-weight: 700;
}

.calc-btn[data-action="backspace"]:hover {
    background: linear-gradient(135deg, #BA68C8 0%, #9C27B0 100%);
    box-shadow: 
        0 10px 25px rgba(156, 39, 176, 0.4),
        0 0 20px rgba(156, 39, 176, 0.3);
}

.calc-btn[data-action="decimal"] {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #ffffff;
    font-weight: 700;
}

.calc-btn[data-action="decimal"]:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    box-shadow: 
        0 10px 25px rgba(76, 175, 80, 0.4),
        0 0 20px rgba(76, 175, 80, 0.3);
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 209, 255, 0.4);
    }
}

.calc-btn[data-action="equals"]:hover {
    animation: buttonPulse 2s infinite;
}

@media (max-width: 768px) {
    .calculator-window {
        width: 200px;
        height: 280px;
    }
    
    .calculator-content {
        padding: 12px;
    }
    
    #calculatorInput {
        height: 35px;
        font-size: 16px;
        padding: 0 8px;
    }
    
    .calc-btn {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .calculator-buttons {
        gap: 4px;
    }
} 