/* Calculus Calculators Pro - Main Styles */

.cc-calculator {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cc-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #4CAF50;
}

.cc-form {
    margin-bottom: 20px;
}

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

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

.cc-input-group label input[type="radio"],
.cc-input-group label input[type="checkbox"] {
    margin-right: 8px;
}

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

.cc-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.cc-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.cc-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.cc-button {
    background: #2196F3;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

.cc-button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.cc-button:active {
    transform: translateY(0);
}

.cc-result {
    margin-top: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #4CAF50;
    border-radius: 6px;
    display: none;
}

.cc-result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
    margin: 0 0 15px 0;
}

.cc-result-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.cc-result-value {
    font-size: 20px;
    font-weight: 700;
    color: #2196F3;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.cc-steps {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.cc-steps h4 {
    color: #666;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.cc-step {
    padding: 10px;
    margin: 8px 0;
    background: #f5f5f5;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.cc-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.cc-help {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.cc-bounds {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cc-calculator {
        padding: 20px;
    }
    
    .cc-title {
        font-size: 20px;
    }
    
    .cc-button {
        width: 100%;
        max-width: none;
    }
}

/* Loading State */
.cc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.cc-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Radio buttons styling */
.cc-input-group label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    font-weight: normal;
}

.cc-input-group label:has(input[type="radio"]) {
    font-weight: normal;
}

/* Graph container (for future visualization features) */
.cc-graph {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* Formula display */
.cc-formula {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

/* Info boxes */
.cc-info {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.cc-info p {
    margin: 0;
    color: #1565C0;
}

/* Success message */
.cc-success {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #2e7d32;
}

/* Warning message */
.cc-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #e65100;
}
