/* Custom CSS for Etech.pk */

/* Cache Control Headers */
.no-cache {
    cache-control: no-cache, no-store, must-revalidate;
    pragma: no-cache;
    expires: 0;
}

/* Loading animations */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Calculator specific styles */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calculator-result {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.calculator-result.success {
    background: #f0fdf4;
    border-color: #22c55e;
}

.calculator-result.error {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Form elements */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Tool cards hover effects */
.tool-card {
    transition: transform 0.2s ease-in-out;
}

.tool-card:hover {
    transform: translateY(-2px);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .calculator-form {
        padding: 1rem;
    }
    
    .text-responsive {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .calculator-form {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}