/* Calculator App Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.calculator {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.calculator h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.inputs {
    margin-bottom: 1.5rem;
}

.inputs input {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    margin: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.operator-btn {
    padding: 15px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operator-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.operator-btn:active {
    transform: translateY(0);
}

.actions {
    margin-bottom: 1.5rem;
}

.clear-btn {
    padding: 12px 30px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #ff5252;
}

.result {
    min-height: 60px;
    padding: 15px;
    margin: 1rem 0;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.examples {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.examples h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.examples p {
    color: #666;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 600px) {
    .calculator {
        padding: 1.5rem;
    }
    
    .calculator h1 {
        font-size: 1.5rem;
    }
    
    .buttons {
        grid-template-columns: 1fr;
    }
    
    .inputs input {
        width: 100%;
        max-width: none;
        margin: 0.25rem 0;
    }
}
