/* 
 * External CSS file for additional styles
 * Main styles are embedded in index.html for better performance
 * This file can be used for future extensions or custom themes
 */

 

/* Print styles */
@media print {
    .nav-tabs,
    .btn,
    .contact-actions,
    .timeline-actions {
        display: none !important;
    }
    
    .content-section {
        display: block !important;
    }
    
    .card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .header {
        background: #7868E6 !important;
       
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000040;
        --text-dark: #000000;
        --background-light: #ffffff;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid #000000;
        margin: 1rem 0;
    }
}

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

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #9C88FF;
        --secondary-color: #B8B5FF;
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --background-light: #1a1a1a;
        --background-accent: #2d2d2d;
    }
    
    body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .card,
    .checklist-item,
    .contact-card,
    .timeline-content {
        background: #2d2d2d;
        color: #ffffff;
        border-color: rgba(156, 136, 255, 0.2);
    }
    
    .form-control {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #404040;
    }
    
    .progress-container {
        background: rgba(156, 136, 255, 0.15);
        border-color: rgba(156, 136, 255, 0.3);
    }
    
    .progress-bar-container {
        background: rgba(156, 136, 255, 0.2);
    }
}

#documents-checklist label {
  color: var(--text-dark);
  flex: 1;
}


/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }


/* Button size variations */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-left: auto;
}

p {
    color: var(--text-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

/* Responsive button adjustments */
@media (max-width: 480px) {
    .btn-sm {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .contact-actions .btn-sm {
        width: 100%;
        margin: 0;
    }

    /* Better touch targets */
    .checklist-item {
        min-height: 48px;
    }

    .nav-tab {
        min-height: 48px;
    }

    /* Improve readability */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Empty state adjustments */
    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-text {
        font-size: 1rem;
    }
}

/* Required field indicator */
.required-badge {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* Loading animation improvements */
.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { 
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% { 
        color: black; 
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% { 
        text-shadow: .25em 0 0 black, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% { 
        text-shadow: .25em 0 0 black, .5em 0 0 black;
    }
}

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

/* Focus visible for better accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-tab:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Improved link accessibility */
a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Better contrast for text */
strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Improved checklist item accessibility */
.checklist-item label {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .btn,
    .nav-tab {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Checkbox mantém tamanho específico definido no index.html */
    .checklist-item input[type="checkbox"] {
        min-height: auto;
        min-width: auto;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
