/* Custom Styles for Calculator Website */

:root {
   --primary-color: #007bff;
   --secondary-color: #6c757d;
   --success-color: #28a745;
   --info-color: #17a2b8;
   --warning-color: #ffc107;
   --danger-color: #dc3545;
}

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   line-height: 1.6;
   background-color: #f8f9fa;
}

/* Custom card hover effects */
.hover-card {
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Custom button styles */
.btn-primary {
   background-color: var(--primary-color);
   border-color: var(--primary-color);
   border-radius: 8px;
   font-weight: 500;
   padding: 0.5rem 1.5rem;
   transition: all 0.3s ease;
}

.btn-primary:hover {
   background-color: #0056b3;
   border-color: #0056b3;
   transform: translateY(-1px);
}

/* Form styling */
.form-control {
   border-radius: 8px;
   border: 2px solid #e9ecef;
   transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
   border-color: var(--primary-color);
   box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Card styling */
.card {
   border: none;
   border-radius: 12px;
   overflow: hidden;
}

.card-header {
   border-bottom: none;
   font-weight: 600;
}

/* Navigation styling */
.navbar-brand {
   font-size: 1.5rem;
}

.navbar-nav .nav-link {
   font-weight: 500;
   margin: 0 0.25rem;
   border-radius: 6px;
   transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
   background-color: rgba(255, 255, 255, 0.1);
}

/* Footer styling */
footer {
   margin-top: auto;
}

/* Results display */
.display-1, .display-3, .display-4, .display-5 {
   font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .display-1 {
       font-size: 3rem;
   }
   
   .display-3 {
       font-size: 2.5rem;
   }
   
   .display-4 {
       font-size: 2rem;
   }
   
   .display-5 {
       font-size: 1.75rem;
   }
}

/* Loading animation for forms */
.btn:disabled {
   opacity: 0.7;
}

/* Alert styling */
.alert {
   border: none;
   border-radius: 8px;
   font-weight: 500;
}

/* Form validation styling */
.is-invalid {
   border-color: var(--danger-color);
}

.invalid-feedback, .text-danger {
   font-size: 0.875rem;
}

/* Custom radio button styling */
.form-check-input:checked {
   background-color: var(--primary-color);
   border-color: var(--primary-color);
}

/* Smooth scrolling */
html {
   scroll-behavior: smooth;
}

/* Focus accessibility */
.btn:focus, .form-control:focus, .form-check-input:focus {
   outline: none;
   box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Print styles */
@media print {
   .navbar, .btn, footer {
       display: none !important;
   }
   
   .container {
       max-width: none !important;
   }
}

