/*
Minified
CSS
*/
/* Custom styles for Passport Ranker - Tailwind CSS compatible */

/* Import Local Fonts */
@import url('/fonts.css');

/* Global custom properties */
:root {
    --primary-color: #141414;
    --secondary-color: #1C355E;
    --accent-color: #7C213B;
}

/* Chart container styling */
#chartdiv {
    background-color: transparent !important;
    border-radius: 1rem;
}

/* Custom styles for amCharts maps */
.amcharts-MapChart-group {
    border-radius: 1rem;
    overflow: hidden;
}
ul {
  list-style: none;   /* usuwa domyślne kropki */
  padding-left: 0;
}

ul li::before {
  content: "✓ ";      /* tutaj podajesz swój symbol */
  color: green;
  font-weight: bold;
}
.text-neutral-700.prose.prose-neutral.max-w-none ol {
  list-style: none;           /* usuwa domyślną numerację */
  padding-left: 0;
  counter-reset: custom-counter;
}

.text-neutral-700.prose.prose-neutral.max-w-none ol li {
  counter-increment: custom-counter; /* zwiększa licznik */
}

.text-neutral-700.prose.prose-neutral.max-w-none ol li::before {
  content: counter(custom-counter) ". ";  /* 1. 2. 3. */
  color: #16A34A;
  font-weight: bold;
}


/* Form select styling for country flags */
.form-input option {
    padding-left: 2rem;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    background-size: 20px auto;
}

/* Legacy support for existing functionality */
.country-flag {
    width: 40px;
    height: auto;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.country-flag-large {
    width: 60px;
    height: auto;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.country-flag-small {
    width: 24px;
    height: auto;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.select-flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    border-radius: 2px;
}

/* Breadcrumbs compatibility */
.breadcrumbs {
    background-color: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: white;
}

.breadcrumbs span,
.breadcrumbs a {
    color: white !important;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Description box styling */
.description-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.description-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 1rem;
    text-align: left;
}

.description-text img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.description-text table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
}

.description-text table td,
.description-text table th {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.description-text table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.description-text ul,
.description-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Mobile responsiveness for flags */
@media (max-width: 768px) {
    .country-flag {
        width: 30px;
    }

    .country-flag-large {
        width: 40px;
    }

    .country-flag-small {
        width: 20px;
    }
}

/* Login form styling */
.login-form {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.login-form h1 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.login-form .form-label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: var(--secondary-color);
}

.login-form .form-control {
    border-color: #d1d5db;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(28, 53, 94, 0.25);
}

.login-form .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.login-form .btn-primary:hover {
    background-color: #163049;
    border-color: #163049;
    transform: translateY(-1px);
}

/* Enhanced mobile responsiveness for requirements page */
@media (max-width: 640px) {
    /* Login form mobile adjustments */
    .login-form {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    /* Adjust chart container on mobile */
    .chart-section-bottom {
        padding: 1rem !important;
        margin: 0 -0.5rem 3rem -0.5rem !important;
    }
    
    /* Better spacing for chart to table on mobile */
    .chart-to-table-spacing {
        margin-top: 2rem !important;
        clear: both !important;
    }
    
    /* Mobile-specific table adjustments */
    #requirementsTable thead th {
        font-size: 0.625rem;
        padding: 0.5rem 0.75rem;
    }
    
    #requirementsTable tbody td {
        padding: 0.75rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Ensure proper text wrapping on mobile */
    #requirementsTable tbody td span {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Mobile button adjustments */
    .inline-flex.items-center.gap-1 {
        min-height: 32px;
    }
    
    /* Fix overlapping statistics on mobile */
    .space-y-3 {
        gap: 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        margin-top: 1rem !important;
    }
    
    /* Ensure chart doesn't overflow on mobile */
    .flex.justify-center canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Force vertical layout on mobile */
    .flex.flex-col.gap-6 {
        gap: 1.5rem !important;
    }
    
    /* Chart container specific mobile fixes */
    .h-\[200px\] {
        height: 180px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Statistics container mobile spacing */
    .order-2 {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #e5e5e5 !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    /* Further reduce chart height on very small screens */
    .h-\[200px\] {
        height: 150px !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure chart doesn't overflow */
    #requirementsChart {
        max-width: 100%;
        max-height: 150px;
    }
    
    /* Tighter spacing */
    .chart-section-bottom {
        padding: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Better spacing for chart to table */
    .chart-to-table-spacing {
        margin-top: 2.5rem !important;
    }
    
    /* Very small screen table adjustments */
    #requirementsTable {
        font-size: 0.7rem;
    }
    
    #requirementsTable thead th {
        padding: 0.5rem;
        font-size: 0.6rem;
    }
    
    #requirementsTable tbody td {
        padding: 0.5rem;
    }
    
    /* Make status badges more compact on very small screens */
    .inline-flex.items-center.gap-1.px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.625rem;
    }
    
    /* Ensure no overlapping text */
    .space-y-3 > * {
        margin-bottom: 1rem !important;
    }
    
    /* Statistics container extra spacing */
    .order-2 {
        margin-top: 1.5rem !important;
        padding-top: 1.5rem !important;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .chart-to-table-spacing {
        margin-top: 1rem !important;
    }
    
    .h-\[250px\] {
        height: 200px !important;
    }
}

/* Custom scrollbar for tables */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Prose styling for content pages */
.prose h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1C355E;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1C355E;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.prose h5 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose h6 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose strong {
    font-weight: 600;
    color: var(--primary-color);
}

.prose em {
    font-style: italic;
}

/* Hover effects for interactive elements */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-neutral-50 {
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000080;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.focus\:ring-2:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-underline {
    text-decoration: none !important;
}

.no-underline:hover {
    text-decoration: none !important;
}

/* Custom button enhancements for Bootstrap compatibility */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Keep existing Bootstrap card styles - no overrides needed */

/* Ograniczaj odstęp między wykresem a tabelą na stronach requirements do maksymalnie 50px */
.chart-to-table-spacing {
    margin-top: -220px !important;
}

/* Redukuj padding dolny sekcji wykresu */
.chart-section-bottom {
    padding-bottom: 0 !important;
}

/* Zapewnij klikowalność nagłówków tabeli */
th[onclick], th[onclick] * {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
}

th[onclick]:hover {
    background-color: #f5f5f5 !important;
}

/* Upewnij się że kontener tabeli nie blokuje kliknięć */
.overflow-x-auto {
    pointer-events: auto !important;
}

/* Mobile-specific spacing fixes for overlapping elements */
@media (max-width: 768px) {
    /* Override default spacing on mobile */
    .chart-to-table-spacing {
        margin-top: 2rem !important;
    }
    
    .chart-section-bottom {
        margin-bottom: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Ensure proper spacing between chart section and table */
    .chart-section-bottom + .chart-to-table-spacing {
        margin-top: 3rem !important;
    }
    
    /* Add more space around the main chart container */
    .max-w-5xl.bg-white.rounded-lg.shadow-sm.border.border-neutral-200 {
        margin-bottom: 2rem !important;
    }
    
    /* Prevent text from overlapping in status badges */
    .inline-flex.items-center.gap-1.px-2.py-1.rounded-full {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    /* Ensure proper spacing in flex containers */
    .space-y-3 > div,
    .space-y-4 > div {
        margin-bottom: 1rem !important;
        clear: both !important;
    }
    
    /* Fix for order-2 element spacing */
    .order-2.lg\:order-2 {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #e5e5e5 !important;
    }
}

/* Very specific mobile fixes */
@media (max-width: 540px) {
    /* Extra spacing for very narrow screens */
    .chart-to-table-spacing {
        margin-top: 4rem !important;
    }
    
    /* Ensure statistics don't overlap with chart */
    .order-2.lg\:order-2 {
        margin-top: 2.5rem !important;
        padding-top: 1.5rem !important;
        border-top: 2px solid #e5e5e5 !important;
    }
    
    /* More compact status badges for narrow screens */
    .inline-flex.items-center.gap-1 span {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
    }
    
    /* Override chart height for very small screens */
    .h-\[200px\] {
        height: 150px !important;
        margin-bottom: 2rem !important;
    }
    
    /* Better spacing for chart to table */
    .chart-to-table-spacing {
        margin-top: 2.5rem !important;
    }
    
    /* Tighter chart section spacing */
    .chart-section-bottom {
        padding: 0.75rem !important;
        margin-bottom: 2rem !important;
    }
}
