/* Base Styles */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f5f5f5;
  }
  
  a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  a:hover {
    color: var(--secondary);
    text-decoration: none;
  }
  
  /* Navigation */
  .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .nav-link {
    font-weight: 500;
  }
  
  /* Cards */
  .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  .card-header {
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0 !important;
  }
  
  /* Buttons */
  .btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
  }
  
  .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  /* Forms */
  .form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
  }
  
  .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
  }
  
  .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  /* Alerts */
  .alert {
    border-radius: 0.375rem;
    padding: 1rem;
  }
  
  .alert-dismissible .btn-close {
    padding: 1rem;
  }
  
  /* Tables */
  .table {
    border-collapse: separate;
    border-spacing: 0;
  }
  
  .table th {
    font-weight: 600;
    background-color: var(--gray-light);
  }
  
  .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
  }
  
  /* Badges */
  .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
  }
  
  /* Utility Classes */
  .rounded-lg {
    border-radius: 0.5rem;
  }
  
  .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  }
  
  .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  /* Payment Specific Styles */
  .payment-card {
    border-left: 4px solid var(--primary);
  }
  
  .payment-card .card-header {
    background-color: rgba(52, 152, 219, 0.1);
  }
  
  .pricing-card-title {
    font-size: 2.5rem;
    margin: 1rem 0;
  }
  
  .plan-features {
    margin: 1rem 0;
  }
  
  .plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
  }
  
  .plan-features li:before {
    content: "✓";
    color: var(--success);
    margin-right: 0.75rem;
    font-weight: bold;
  }
  
  /* Analysis Results */
  .defect-high {
    color: var(--danger);
    font-weight: 600;
  }
  
  .defect-medium {
    color: var(--warning);
    font-weight: 600;
  }
  
  .defect-low {
    color: var(--success);
    font-weight: 600;
  }
  
  .result-image {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: transform 0.3s ease;
  }
  
  .result-image:hover {
    transform: scale(1.03);
  }
  
  /* Dashboard Widgets */
  .dashboard-widget {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  }
  
  .dashboard-widget .widget-title {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
  }
  
  .dashboard-widget .widget-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .navbar-brand {
      font-size: 1.25rem;
    }
    
    .card {
      margin-bottom: 1rem;
    }
    
    .pricing-card-title {
      font-size: 2rem;
    }
  }
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .fade-in {
    animation: fadeIn 0.5s ease-in;
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--gray-light);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
  }
  
  /* Print Styles */
  @media print {
    body {
      background-color: var(--white);
      color: #000;
    }
    
    .navbar, .footer, .no-print {
      display: none;
    }
    
    .card {
      box-shadow: none;
      border: 1px solid #dee2e6;
    }
  }