/* ==========================================================================
   Podstawowe ustawienia i zmienne kolorów
   ========================================================================== */
:root {
  --jeremias-primary-blue: #0066CC;
  --jeremias-blue-light: rgba(0, 102, 204, 0.5);
  --jeremias-blue-hover: rgba(0, 102, 204, 0.9);
  --jeremias-yellow: #FFCC00;
  --jeremias-black: #000000;
  --jeremias-light-gray-bg: #f8f9fa;
  --jeremias-border-gray: #dee2e6;
  --jeremias-input-error: #dc2626;

  /* Dark mode variables REMOVED */
  --wizard-step-width: 120px;
  --wizard-step-height: 60px;
}

/* Fonty */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  color: var(--jeremias-black);
}
h1, h2, h3, .section-header {
  font-weight: 700;
}
.btn, .toast, label, .table-header th {
  font-weight: 500;
}

@media print {
  body {
    font-family: Arial, sans-serif;
    color: #000;
    background: #fff;
  }

  header, nav, .btn, .no-print {
    display: none !important;
  }

  main, .print-section {
    padding: 0;
    margin: 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12pt;
  }

  table th, table td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
  }

  h1, h2 {
    font-size: 16pt;
    margin: 0 0 10px;
  }

  .summary-row {
    font-weight: bold;
  }
}

.required-tooltip i {
  font-size: 0.7rem;
}

.required-tooltip div {
  white-space: nowrap;
  z-index: 1000;
}

.border-red-500 {
  border: 2px solid #f87171;
  background-color: #fef2f2;
  border-radius: 0.375rem;
  animation: pulse-red 1s ease-in-out;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

/* ==========================================================================
   Dashboard Styles
   ========================================================================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Welcome Section - BIAŁA bez border-top (jak w market_potential_list.php) */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.welcome-section h1 {
    color: #004f9f;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.welcome-section h1 i,
.welcome-section h1 .fas {
    font-size: 2rem;
    color: #004f9f;
}

.welcome-section p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.font-semibold {
    font-weight: 600;
}

/* Statystyki */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--jeremias-primary-blue);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stats-card h3 {
    color: var(--jeremias-primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stats-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.stats-card .stats-details {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Sekcje narzędzi */
.tools-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-heading {
    color: var(--jeremias-primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-heading i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--jeremias-primary-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.tool-card:hover {
    background: var(--jeremias-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.tool-card.disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card span {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
}

.inactive-badge {
    background: var(--jeremias-yellow);
    color: var(--jeremias-black);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Sekcja aktualności */
.news-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-header {
    background: var(--jeremias-primary-blue);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin: 0;
}

.news-header i {
    margin-right: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-count {
    background: var(--jeremias-yellow);
    color: var(--jeremias-black);
}

.badge-new {
    background: var(--jeremias-yellow);
    color: var(--jeremias-black);
}

.badge-priority {
    background: #ef4444;
    color: white;
}

.badge-staff {
    background: var(--jeremias-primary-blue);
    color: white;
}

.badge-admin {
    background: #8b5cf6;
    color: white;
}

.badge-clients {
    background: #10b981;
    color: white;
}

/* Featured news */
.featured-news {
    border-left: 4px solid var(--jeremias-yellow);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    padding: 1.5rem;
    overflow: hidden;
}

.featured-news.priority-high {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.featured-image {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
    max-width: 200px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.featured-title {
    color: var(--jeremias-primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.featured-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.read-more-btn {
    background: var(--jeremias-primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background: var(--jeremias-blue-hover);
}

/* Lista aktualności */
.news-list {
    max-height: 500px;
    overflow-y: auto;
}

.news-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
    cursor: pointer;
}

.news-item:hover {
    background: #f9fafb;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.news-item h4 {
    font-weight: 600;
    color: #1f2937;
    margin-right: 1rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0;
}

.news-item .summary {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-item .full-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.news-item .date {
    color: #9ca3af;
    font-size: 0.75rem;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.empty-news {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6b7280;
}

.empty-news i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==========================================================================
   Enhanced User Management Styles
   ========================================================================== */

/* Form containers and layout */
.form-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--jeremias-primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-group input:read-only {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.form-group input:read-only:focus {
    box-shadow: none;
    transform: none;
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Enhanced form validation styles */
.input-error {
    border-color: var(--jeremias-input-error) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    background-color: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
}

.input-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    background-color: #f0fdf4;
}

/* Email input group styling */
.email-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0;
    transition: all 0.2s ease;
    background: white;
}

.email-input-group:focus-within {
    border-color: var(--jeremias-primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.email-input-group.input-error {
    border-color: var(--jeremias-input-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background-color: #fef2f2;
}

.email-prefix {
    flex: 1;
    border: none !important;
    padding: 0.75rem;
    margin: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.email-prefix:focus {
    box-shadow: none !important;
    transform: none !important;
}

.email-suffix {
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 0.75rem;
    font-size: 1rem;
    user-select: none;
}

/* Checkbox group styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #e3f2fd;
    border-color: var(--jeremias-blue-light);
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-bottom: 0;
    cursor: pointer;
    transform: scale(1.1);
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    font-size: 0.875rem;
}

.checkbox-item:has(input:checked) {
    background: var(--jeremias-blue-light);
    border-color: var(--jeremias-primary-blue);
    color: var(--jeremias-primary-blue);
}

/* Enhanced button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.step-title {
    color: #0066CC;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-success {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.btn-success:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before {
    display: none;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced alert styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

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

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-success::before {
    background-color: #10b981;
}

.alert-error {
    background-color: #fecaca;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-error::before {
    background-color: #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.alert-warning::before {
    background-color: #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.alert-info::before {
    background-color: var(--jeremias-primary-blue);
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Required field indicator */
.required {
    color: var(--jeremias-input-error);
    font-weight: 700;
}

/* Loading states */
.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--jeremias-primary-blue), var(--jeremias-yellow));
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .email-input-group {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
    }
    
    .email-prefix {
        padding: 0.5rem;
    }
    
    .email-suffix {
        padding: 0.5rem;
        text-align: center;
        background-color: #f3f4f6;
        border-radius: 0.25rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .checkbox-item {
        padding: 0.5rem;
    }
    
    .checkbox-item label {
        font-size: 0.8rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
        border-color: #000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .input-error {
        border-color: #ff0000 !important;
    }
    
    .input-success {
        border-color: #00ff00 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-container,
    .btn,
    .checkbox-item,
    .alert,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .email-input-group {
        transition: none;
        animation: none;
        transform: none !important;
    }
    
    .btn:hover,
    .checkbox-item:hover {
        transform: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .loading::after {
        animation: none;
        border: 2px solid currentColor;
        border-radius: 0;
    }
}

/* Focus visible for better accessibility */
.btn:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.checkbox-item input:focus-visible {
    outline: 3px solid var(--jeremias-yellow);
    outline-offset: 2px;
}

/* Print optimizations for forms */
@media print {
    .form-container {
        background: transparent;
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border: 1px solid #000;
        background: transparent;
        print-color-adjust: exact;
    }
    
    .btn,
    .alert,
    .checkbox-group {
        display: none;
    }
    
    .form-group label {
        font-weight: bold;
        color: #000;
    }
    
    .form-grid {
        display: block;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
    }
}

/* Calculator Container */
.calculator-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  background: white;
}

/* Header Section */
.calculator-header {
  margin-bottom: 2rem;
}

.calculator-hero {
  background: white;
  color: #0066CC;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-hero-content {
  flex: 1;
}

.calculator-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0066CC;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calculator-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

.calculator-stats {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 80px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress Container */
.progress-container {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 60px;
  right: 60px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  min-width: var(--wizard-step-width);
}

.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: 4px solid #e5e7eb;
}

.step-label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.progress-step.active .step-circle {
  background: var(--jeremias-primary-blue);
  color: white;
  border-color: var(--jeremias-primary-blue);
  transform: scale(1.1);
}

.progress-step.active .step-label {
  color: var(--jeremias-primary-blue);
  font-weight: 700;
}

.progress-step.completed .step-circle {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.progress-step.completed .step-label {
  color: #10b981;
}

.progress-step:hover:not(.completed) .step-circle {
  transform: scale(1.05);
}

/* Form Steps */
.calculator-form {
  position: relative;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideIn 0.5s ease-out;
}

/* Form Elements */
.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
  background-color: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--jeremias-primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  transform: translateY(-1px);
}

.form-help {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.optional-badge {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Grid Layouts */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards */
.offer-info-card,
.client-info-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.offer-info-card:hover,
.client-info-card:hover {
  border-color: var(--jeremias-blue-light);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.optional-fields {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* System Selector */
.system-selector {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-components {
  margin-top: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  z-index: 1;
}

.form-input.search-input {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
  display: none;
}

.search-clear:hover {
  color: #374151;
}

/* Components Section */
.components-section {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.components-header {
  background: var(--jeremias-primary-blue);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.components-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.components-actions {
  display: flex;
  gap: 0.5rem;
}

.components-table-container {
  max-height: 500px;
  overflow-y: auto;
  border-bottom: 1px solid #e5e7eb;
}

.components-table {
  width: 100%;
  border-collapse: collapse;
}

.components-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.components-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.components-table tbody tr {
  transition: background-color 0.2s ease;
}

.components-table tbody tr:hover {
  background-color: #f8fafc;
}

.components-table tbody tr.selected {
  background-color: var(--jeremias-blue-light);
  border-left: 4px solid var(--jeremias-primary-blue);
}

.component-index {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jeremias-primary-blue);
}

.component-name {
  font-weight: 500;
  color: #374151;
}

.quantity-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-align: center;
  font-weight: 600;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--jeremias-primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.quick-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quick-add-btn:hover {
  transform: scale(1.1);
}

.components-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
}

/* Manual Item Section */
.manual-item-section {
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.manual-item-header {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: white;
  padding: 1rem 1.5rem;
}

.manual-item-form {
  padding: 1.5rem;
}

.manual-item-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* Specification Section */
.specification-section {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.specification-table-container {
  max-height: 400px;
  overflow-y: auto;
}

.specification-table {
  width: 100%;
  border-collapse: collapse;
}

.specification-table th {
  background: var(--jeremias-primary-blue);
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.specification-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.specification-table tbody tr {
  transition: background-color 0.2s ease;
}

.specification-table tbody tr:hover {
  background-color: #f8fafc;
}

.specification-footer {
  background: #f8fafc;
  border-top: 2px solid var(--jeremias-primary-blue);
}

.specification-footer td {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--jeremias-primary-blue);
}

.spec-index {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jeremias-primary-blue);
}

.spec-price,
.spec-value {
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600;
}

.quantity-edit {
  width: 70px;
  padding: 0.375rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  text-align: center;
  font-weight: 600;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* Discount Section */
.discount-section {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.discount-header {
  margin-bottom: 1rem;
}

.discount-title {
  color: #92400e;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.discount-form {
  margin-bottom: 1rem;
}

.discount-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.discount-info {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  color: #1d4ed8;
  font-weight: 600;
  text-align: center;
}

.discount-info.hidden {
  display: none;
}

/* Print Options Section */
.print-options-section {
  background: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.print-options-header {
  margin-bottom: 1rem;
}

.print-options-title {
  color: #065f46;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.print-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #065f46;
  cursor: pointer;
}

.checkbox-input {
  margin-right: 0.75rem;
  transform: scale(1.1);
  cursor: pointer;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-color: #f59e0b;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  min-height: 36px;
}

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }

.w-full {
  width: 100%;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Quick Actions Sidebar */
.quick-actions-sidebar {
  position: fixed;
  top: 50%;
  right: -300px;
  transform: translateY(-50%);
  width: 280px;
  background: white;
  border-radius: 1rem 0 0 1rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  border: 2px solid #e5e7eb;
  border-right: none;
  transition: right 0.3s ease;
  z-index: 1000;
}

.quick-actions-sidebar.active {
  right: 0;
}

.quick-actions-header {
  background: var(--jeremias-primary-blue);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1rem 0 0 0;
}

.quick-actions-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quick-actions-content {
  padding: 1rem;
}

.quick-action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.quick-action-item:last-child {
  border-bottom: none;
}

.quick-action-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.quick-action-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.quick-actions-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jeremias-primary-blue), #2563eb);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

/* Utility Classes */
.hidden {
  display: none;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-jeremiasBlue {
  color: var(--jeremias-primary-blue);
}

.text-gray-600 {
  color: #6b7280;
}

.no-print {
  /* Hidden in print mode */
}

.pulse {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.btn-pulse {
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.8);
  }
}

/* Enhanced table styles for user lists */
.user-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-table thead {
    background: var(--jeremias-primary-blue);
    color: white;
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.user-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-table tbody tr {
    transition: background-color 0.2s ease;
}

.user-table tbody tr:hover {
    background-color: #f9fafb;
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    padding: 0.5rem;
    min-height: 36px;
    width: 36px;
    justify-content: center;
}

/* Search and filter styles */
.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 0.375rem;
}

.pagination .btn.active {
    background: var(--jeremias-primary-blue);
    color: white;
}

.pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-blocked {
    background-color: #fecaca;
    color: #991b1b;
}

/* Role badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-admin {
    background-color: #8b5cf6;
    color: white;
}

.role-manager {
    background-color: var(--jeremias-primary-blue);
    color: white;
}

.role-sales {
    background-color: #10b981;
    color: white;
}

.role-technical {
    background-color: #f59e0b;
    color: white;
}

.role-client {
    background-color: #6b7280;
    color: white;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Additional utility classes for enhanced UX */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced responsive behavior */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .filter-select {
        min-width: unset;
    }
    
    .user-table {
        font-size: 0.875rem;
    }
    
    .user-table th,
    .user-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-sm {
        width: 100%;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calculator-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .calculator-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .progress-steps::before {
    left: 30px;
    right: 30px;
  }
  
  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .calculator-title {
    font-size: 2rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .discount-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .calculator-container {
    padding: 0.5rem;
  }
  
  .calculator-hero {
    padding: 1.5rem;
  }
  
  .calculator-title {
    font-size: 1.75rem;
  }
  
  .progress-container {
    padding: 1rem;
  }
  
  .progress-steps {
    margin-bottom: 1rem;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .form-container {
    padding: 1rem;
  }
  
  .form-section-title {
    font-size: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .components-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .components-table {
    font-size: 0.875rem;
  }
  
  .components-table th,
  .components-table td {
    padding: 0.5rem;
  }
  
  .quantity-input {
    width: 60px;
    padding: 0.375rem;
  }
  
  .manual-item-form .grid {
    grid-template-columns: 1fr;
  }
  
  .print-checkboxes {
    gap: 0.5rem;
  }
  
  .quick-actions-sidebar {
    width: 100%;
    right: -100%;
    top: 0;
    bottom: 0;
    transform: none;
    border-radius: 0;
    border: none;
    border-left: 2px solid #e5e7eb;
  }
  
  .quick-actions-header {
    border-radius: 0;
  }
  
  .fab {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .calculator-hero {
    padding: 1rem;
  }
  
  .calculator-title {
    font-size: 1.5rem;
  }
  
  .calculator-stats {
    gap: 0.5rem;
  }
  
  .stat-card {
    min-width: 60px;
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .progress-step {
    min-width: 80px;
  }
  
  .form-input,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .components-table-container {
    max-height: 300px;
  }
  
  .specification-table-container {
    max-height: 250px;
  }
}

/* Print styles */
@media print {
  .calculator-container {
    background: white;
  }
  
  .progress-container,
  .quick-actions-sidebar,
  .fab,
  .form-actions,
  .components-actions,
  .manual-item-section,
  .discount-section,
  .print-options-section,
  .no-print {
    display: none !important;
  }
  
  .form-step {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .form-container {
    box-shadow: none;
    border: 1px solid #000;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
  
  .components-table,
  .specification-table {
    font-size: 12pt;
    page-break-inside: avoid;
  }
  
  .components-table th,
  .specification-table th {
    background: #f0f0f0 !important;
    color: #000 !important;
    print-color-adjust: exact;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input,
  .form-select {
    border-width: 3px;
    border-color: #000;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .progress-step.active .step-circle {
    border-width: 4px;
    border-color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .form-step,
  .btn,
  .progress-step,
  .calculator-hero,
  .progress-fill,
  .fab,
  .quick-actions-sidebar {
    transition: none;
    animation: none;
    transform: none !important;
  }
  
  .progress-fill::after {
    animation: none;
  }
  
  .btn:hover,
  .fab:hover {
    transform: none;
  }
}