/* Exponential Calculator Styles */

.expcalc-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.expcalc-calculator {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.expcalc-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.expcalc-description {
    margin: 0 0 25px 0;
    font-size: 15px;
    color: #718096;
    text-align: center;
}

.expcalc-form {
    margin-bottom: 25px;
}

.expcalc-input-group {
    margin-bottom: 20px;
}

.expcalc-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
}

.expcalc-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.expcalc-input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.expcalc-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.expcalc-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expcalc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.expcalc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.expcalc-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.expcalc-btn-secondary:hover {
    background: #cbd5e0;
}

.expcalc-result {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9f0f7 100%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #667eea;
}

.expcalc-result h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2d3748;
    font-weight: 700;
}

.expcalc-result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expcalc-formula {
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    color: #2d3748;
    text-align: center;
    font-weight: 500;
}

.expcalc-answer {
    padding: 15px;
    background: white;
    border-radius: 6px;
    font-size: 20px;
    color: #2d3748;
    text-align: center;
}

.expcalc-answer strong {
    color: #667eea;
}

.expcalc-answer span {
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
    color: #1a202c;
}

.expcalc-error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #742a2a;
    font-weight: 500;
}

.expcalc-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

.expcalc-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2d3748;
    font-weight: 700;
}

.expcalc-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expcalc-info li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .expcalc-calculator {
        padding: 20px;
    }
    
    .expcalc-title {
        font-size: 22px;
    }
    
    .expcalc-buttons {
        flex-direction: column;
    }
    
    .expcalc-btn {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expcalc-result,
.expcalc-error {
    animation: fadeIn 0.4s ease;
}
