/* TJRJ Custom Styles */
:root {
    --tjrj-blue: #1e40af;
    --tjrj-light-blue: #3b82f6;
    --tjrj-dark-blue: #1e3a8a;
}

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bg-tjrj-blue {
    background-color: var(--tjrj-blue);
}

.text-tjrj-blue {
    color: var(--tjrj-blue);
}

.border-tjrj-blue {
    border-color: var(--tjrj-blue);
}

.hover\:bg-tjrj-blue:hover {
    background-color: var(--tjrj-blue);
}

.focus\:ring-tjrj-blue:focus {
    --tw-ring-color: var(--tjrj-blue);
}

/* TJRJ Logo Styles */
.tjrj-logo {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Audio Player Styles */
.audio-player {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

#progress-bar {
    background: linear-gradient(to right, var(--tjrj-blue) 0%, #e5e7eb 0%);
}

#progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tjrj-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#progress-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tjrj-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Transcription Styles */
.transcript-entry {
    margin-bottom: 16px;
    padding: 12px;
    border-left: 4px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.transcript-entry:hover {
    border-left-color: var(--tjrj-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transcript-entry.active {
    border-left-color: var(--tjrj-blue);
    background: #f0f9ff;
}

.speaker-label {
    font-weight: 600;
    color: var(--tjrj-blue);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.timestamp {
    color: #6b7280;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

.transcript-text {
    margin-top: 8px;
    line-height: 1.6;
    color: #374151;
}

/* Chat Styles */
.chat-message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar.user {
    background: var(--tjrj-blue);
    color: white;
}

.chat-avatar.assistant {
    background: #10b981;
    color: white;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.5;
}

.chat-bubble.user {
    background: var(--tjrj-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-bottom-left-radius: 4px;
}

/* Progress Circle */
.circular-progress {
    position: relative;
    width: 64px;
    height: 64px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--tjrj-blue) 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tjrj-blue);
    z-index: 1;
}

/* Upload Area Animation */
#upload-area.dragover {
    border-color: var(--tjrj-blue);
    background: #f0f9ff;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.processing {
    background: #f59e0b;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.completed {
    background: #10b981;
}

.status-indicator.error {
    background: #ef4444;
}

/* Marcador Styles */
.marcador-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--tjrj-blue);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
}

/* Contradiction Highlight */
.contradiction {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 8px;
    border-radius: 4px;
    margin: 4px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .chat-bubble {
        max-width: 90%;
    }
}

/* Print Styles for Ata */
@media print {
    body * {
        visibility: hidden;
    }
    
    #ata-preview, #ata-preview * {
        visibility: visible;
    }
    
    #ata-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

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

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--tjrj-blue);
    outline-offset: 2px;
}