body {
    font-family: 'Inter', sans-serif;
}
/* --- Styles from Verifier App --- */
.custom-file-upload {
    border: 2px dashed #cbd5e1;
    /* display: inline-block; */ /* Removed for flex */
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.custom-file-upload:hover, .dragover {
    border-color: #4f46e5;
    background-color: #f8fafc;
}
input[type="file"] {
    display: none;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4f46e5;
    animation: spin 1s ease infinite;
}

/* --- Styles from Merger App (Adapted for Light Mode) --- */
#mergerTab textarea::-webkit-scrollbar,
#mergerTab div::-webkit-scrollbar {
    width: 8px;
}
#mergerTab textarea::-webkit-scrollbar-track,
#mergerTab div::-webkit-scrollbar-track {
    background: #e2e8f0; /* slate-200 */
}
#mergerTab textarea::-webkit-scrollbar-thumb,
#mergerTab div::-webkit-scrollbar-thumb {
    background: #94a3b8; /* slate-400 */
    border-radius: 4px;
}
#mergerTab textarea::-webkit-scrollbar-thumb:hover,
#mergerTab div::-webkit-scrollbar-thumb:hover {
    background: #64748b; /* slate-500 */
}
/* Style for file input button in Merger */
.merger-file-upload-label {
    cursor: pointer;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5; /* CHANGED to indigo-600 */
    color: white;
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.2s;
    /* border: 1px solid #64748b; */ /* Removed border */
    text-align: center;
    font-weight: 600; /* Added */
}
.merger-file-upload-label:hover {
    background-color: #4338CA; /* CHANGED to indigo-700 */
}
.merger-file-name {
    /* margin-left: 1rem; */ /* Removed margin for center align */
    font-style: normal; /* Removed italic */
    color: #64748b; /* slate-500 */
}

/* --- Tab Button Styles --- */
.tab-btn {
    padding: 0.75rem 1rem; /* Adjusted padding */
    font-weight: 600; 
    color: #64748b; /* slate-500 */
    border-bottom: 2px solid transparent; /* Adjusted border */
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap; /* Prevent line breaks on small screens */
}
.tab-btn.active {
    color: #4f46e5; /* indigo-600 */
    border-bottom-color: #4f46e5;
}
.tab-btn:hover:not(.active) {
    color: #334155; /* slate-700 */
    /* background-color: #f1f5f9; */ /* Removed hover bg */
}

/* --- Styles from Translator App --- */
/* (The .loader class was removed as .spinner is now global) */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- NEW STYLES for Transcriber Tab --- */
/* Namespaced to #transcriberTab to avoid conflicts with
  other tabs that might use file inputs.
*/
#transcriberTab input[type="file"]::file-selector-button {
    background: #4F46E5; /* indigo-600 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600; /* Added */
}
#transcriberTab input[type="file"]::file-selector-button:hover {
    background: #4338CA; /* indigo-700 */
}

#transcriberTab input[type="file"]::file-selector-button {
    background: #4F46E5; /* indigo-600 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 600; /* font-semibold */
    font-size: 0.875rem; /* text-sm */
}
#transcriberTab input[type="file"]::file-selector-button:hover {
    background: #4338CA; /* indigo-700 */
}

/* --- NEW STYLES for Alternative (Rephraser) Tab --- */
/* This ensures its <textarea> matches the verifier tab */
#alternativeTab textarea {
    font-family: 'Inter', sans-serif; /* Keep consistent font */
}
#alternativeTab textarea:focus {
     border-color: #4f46e5;
     box-shadow: 0 0 0 1px #4f46e5;
     outline: none;
}

/* --- NEW STYLES for Resync Tab --- */
.resync-line-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    transition: all 0.2s;
}
.resync-line-input:focus {
    border-color: #4f46e5; /* indigo-600 */
    box-shadow: 0 0 0 1px #4f46e5;
    outline: none;
}
/* Hide number input arrows */
.resync-line-input::-webkit-outer-spin-button,
.resync-line-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.resync-line-input[type=number] {
  -moz-appearance: textfield;
}