/* Margin Calculator Styles */

/* Asegurar que todos los elementos sean clickeables */
* {
    cursor: default !important;
}

button, 
input, 
select, 
a, 
.clickable {
    cursor: pointer !important;
}

input[readonly] {
    cursor: not-allowed !important;
}

/* Calculator Section */
.calculator-section {
    background: white;
    color: #1f2937;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h1 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.calculator-tool {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

/* Form Styles */
.input-section h2,
.results-section h2 {
    color: #374151;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.form-control {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control:read-only {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Button Styles */
.calculate-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

/* Results Section */
.results-section {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
}

.result-display {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.result-display span {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-screen p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-section {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .calculator-header h1 {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-display {
        padding: 1.5rem 2rem;
    }
    
    .result-display span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .calculator-header h1 {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-display {
        padding: 1rem 1.5rem;
    }
    
    .result-display span {
        font-size: 1.25rem;
    }
}
