:root {
    --sc-primary: #4a6fa5;
    --sc-secondary: #166088;
    --sc-accent: #4cb5f5;
    --sc-display-bg: #f5f7f9;
    --sc-button-bg: #ffffff;
    --sc-button-hover: #e9e9e9;
    --sc-operator-bg: #e9ecef;
    --sc-equals-bg: #4a6fa5;
    --sc-equals-color: #ffffff;
    --sc-equals-hover: #3a5a85;
    --sc-clear-bg: #ff6b6b;
    --sc-clear-color: #ffffff;
    --sc-clear-hover: #ff5252;
    --sc-function-bg: #e9ecef;
    --sc-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --sc-border-radius: 12px;
}

.sc-calculator-container {
    max-width: 100%;
    width: 360px;
    margin: 20px auto;
    background: #6dcfd4;
    border-radius: var(--sc-border-radius);
    box-shadow: var(--sc-shadow);
    overflow: hidden;
}

.sc-calculator-header {
    background: var(--sc-primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.sc-calculator {
    padding: 20px;
}

.sc-calculator-display {
    background: var(--sc-display-bg);
    padding: 20px;
    border-radius: var(--sc-border-radius);
    margin-bottom: 20px;
    text-align: right;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sc-calculation {
    font-size: 18px;
    color: #666;
    min-height: 27px;
    word-break: break-all;
}

.sc-result {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    word-break: break-all;
}

.sc-calculator-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.sc-btn {
    padding: 14px 10px;
    border: none;
    border-radius: 8px;
    background: var(--sc-button-bg);
    font-size: 16px;
	color:black;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.sc-btn:hover {
    background: var(--sc-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sc-operator {
    background: var(--sc-operator-bg);
    font-weight: 600;
}

.sc-equals {
    background: var(--sc-equals-bg);
    color: var(--sc-equals-color);
    grid-column: span 2;
}

.sc-equals:hover {
    background: var(--sc-equals-hover);
}

.sc-clear, .sc-backspace {
    background: var(--sc-clear-bg);
    color: var(--sc-clear-color);
}

.sc-clear:hover, .sc-backspace:hover {
    background: var(--sc-clear-hover);
}

.sc-function {
    background: var(--sc-function-bg);
    font-size: 14px;
}

.sc-memory {
    background: #e9ecef;
    font-size: 14px;
}

.sc-number {
    font-weight: 500;
}

@media (max-width: 480px) {
    .sc-calculator-container {
        width: 100%;
        margin: 10px auto;
    }
    
    .sc-calculator-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sc-btn {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .sc-function {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .sc-calculator-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sc-btn {
        padding: 10px 6px;
        font-size: 13px;
    }
}