/* Enhanced Custom CSS for Batch Translation System v2.0 */

/* Batch API Specific Styles */
.batch-status-indicator {
    position: relative;
    display: inline-block;
}

.batch-status-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Tier Status Display */
.tier-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.tier-info:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.tier-badge {
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.usage-bar {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.usage-fill {
    position: relative;
    overflow: hidden;
}

.usage-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* Batch Progress Styles */
.progress-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    animation: progress-glow 2s infinite;
}

@keyframes progress-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress {
    height: 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Batch Controls */
.batch-controls {
    position: relative;
    overflow: hidden;
}

.batch-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007bff, #0056b3);
    animation: batch-indicator 3s infinite;
}

@keyframes batch-indicator {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.batch-controls h6 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.batch-controls .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.batch-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Translation Method Indicator */
.translation-method-indicator {
    border-left: 4px solid #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Engine Badge Enhancements */
.engine-badge {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.engine-badge.batch {
    background: linear-gradient(45deg, #007bff, #0056b3);
    animation: badge-glow 2s infinite;
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    }
    50% { 
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    }
}

/* Smart Translation Info */
.smart-translation-info {
    position: relative;
    overflow: hidden;
    animation: infoSlideIn 0.8s ease-out;
}

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

.smart-translation-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    animation: info-sweep 4s infinite;
}

@keyframes info-sweep {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.benefit-item {
    background: rgba(25, 118, 210, 0.1);
    border-radius: 12px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(25, 118, 210, 0.15);
    transform: translateY(-1px);
}

.benefit-item i {
    color: #1976d2;
    filter: drop-shadow(0 1px 2px rgba(25, 118, 210, 0.3));
}

/* Translation Box Enhancements */
.translation-box {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.translation-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.translation-box[data-engine="Batch"] {
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.02));
}

.translation-box[data-engine="Batch"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid #007bff;
    opacity: 0.7;
}

.translation-box[data-engine="Batch"]::after {
    content: '⚡';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7em;
    color: white;
}

/* HTML Content Styling */
.translation-box[data-is-html="true"] {
    border-left: 4px solid #e83e8c;
    background: linear-gradient(135deg, #fff9fb, #fff5f8);
}

.translation-box[data-is-html="true"] .html-code-content {
    font-family: 'Courier New', Consolas, 'Liberation Mono', Monaco, 'Lucida Console', monospace;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.9em;
    line-height: 1.4;
    color: #495057;
}

.translation-box[data-is-html="true"]::before {
    content: "HTML";
    position: absolute;
    top: -10px;
    right: 10px;
    background: #e83e8c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

/* Enhanced Translation Content */
.translation-box > div:not(.html-code-content) {
    flex-grow: 1;
    line-height: 1.6;
    font-size: 1rem;
    color: #2c3e50;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.translation-box .html-code-content {
    flex-grow: 1;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

/* Enhanced Translation Button */
.translation-box .translation-button {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 8px;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.2s ease;
}

.translation-box .translation-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Enhanced Headers */
.translation-box h5 {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a252f;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 0.5rem;
}

.translation-box .engine-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 0.5rem;
}

/* Form Panel Enhancement */
.card {
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Better Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Enhanced Form Elements */
.form-control {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: #ffffff;
}

#sourceText {
    min-height: 140px;
    font-family: inherit;
    resize: vertical;
}

.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Enhanced Select Elements */
.form-select {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Header Enhancement */
.container-fluid {
    max-width: none;
}

/* Progress Indicator */
.progress-info {
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Text Counter */
.text-counter {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Desktop Layout Optimization */
@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 100% !important;
    }
    
    .translation-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: none;
    }
    
    .translation-box {
        max-width: none;
        margin-bottom: 1rem;
        min-height: 200px;
    }
    
    /* Better content layout for full-width */
    .translation-box > div:not(.html-code-content) {
        font-size: 1.05rem;
        line-height: 1.7;
        padding: 1rem;
    }
    
    .translation-box .html-code-content {
        font-size: 0.95rem;
        line-height: 1.6;
        max-height: 300px;
    }
}

/* Extra Large Screens - keep single column for maximum readability */
@media (min-width: 1400px) {
    .col-lg-6 {
        width: 100% !important;
    }
    
    .translation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .translation-box {
        min-height: 220px;
    }
    
    .translation-box > div:not(.html-code-content) {
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 1.25rem;
    }
}

/* Placeholder styling for grid layout */
#translationsPlaceholder {
    grid-column: 1 / -1; /* span all columns */
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Batch Status Animations */
.batch-status.processing {
    animation: processing-pulse 2s infinite;
}

@keyframes processing-pulse {
    0%, 100% { 
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
    }
    50% { 
        background: rgba(0, 123, 255, 0.2);
        border-color: rgba(0, 123, 255, 0.5);
    }
}

.batch-status.completed {
    animation: completed-flash 1s ease-out;
}

@keyframes completed-flash {
    0% { background: rgba(40, 167, 69, 0.3); }
    100% { background: rgba(40, 167, 69, 0.1); }
}

/* Dashboard Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Dashboard Cards */
.modal-body .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.modal-body .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.modal-body .card .card-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
}

.modal-body .card h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-body .card .card-text {
    color: #6c757d;
    font-size: 0.85em;
}

/* Batch List Styles */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.list-group-item .badge {
    font-size: 0.75em;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

.list-group-item .btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.list-group-item .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading Spinner Enhancements */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Batch Loading States */
.batch-loading {
    position: relative;
    overflow: hidden;
}

.batch-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
    animation: loading-sweep 2s infinite;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Notification Enhancements */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: notification-slide 0.5s ease-out;
}

@keyframes notification-slide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9), rgba(19, 132, 150, 0.9));
    color: white;
    border-left: 4px solid #17a2b8;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(34, 139, 58, 0.9));
    color: white;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 171, 0, 0.9));
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(200, 35, 51, 0.9));
    color: white;
    border-left: 4px solid #dc3545;
}

/* Form Enhancements */
.form-container {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-text .text-info {
    color: #17a2b8 !important;
    font-weight: 500;
}

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
}

/* Cards Enhancements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

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

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #495057;
}

.card-body {
    padding: 1.25rem;
}

/* Footer Enhancements */
.version-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 0.8em;
    color: #007bff;
    font-weight: 500;
}

#systemStatus {
    font-size: 1.2em;
    filter: drop-shadow(0 0 3px currentColor);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tier-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px;
    }
    
    .batch-benefits {
        flex-direction: column;
        gap: 8px;
    }
    
    .benefit-item {
        font-size: 0.85em;
    }
    
    .translation-box {
        margin-bottom: 1rem;
        padding: 1rem;
        min-height: 160px;
    }
    
    .translation-box h5 {
        font-size: 1rem;
    }
    
    .translation-box > div:not(.html-code-content) {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #sourceText {
        min-height: 120px;
    }
    
    .col-xl-3 {
        margin-bottom: 1.5rem;
    }
    
    .modal-body .row {
        margin-bottom: 1rem;
    }
    
    .alert {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .form-container {
        padding: 0.75rem;
    }
    
    .translation-box {
        padding: 1rem;
    }
    
    .batch-controls {
        padding: 0.75rem;
    }
    
    .smart-translation-info {
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .form-container,
    .card,
    .translation-box {
        background: linear-gradient(135deg, #343a40, #495057);
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .form-control,
    .form-select {
        background: #495057;
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .form-control:focus,
    .form-select:focus {
        background: #495057;
        border-color: #007bff;
        color: #f8f9fa;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
    
    .smart-translation-info {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.2), rgba(23, 162, 184, 0.1));
        border-color: #17a2b8;
        color: #f8f9fa;
    }
    
    .list-group-item {
        background: linear-gradient(135deg, #495057, #6c757d);
        color: #f8f9fa;
    }
    
    .modal-content {
        background: linear-gradient(135deg, #343a40, #495057);
        color: #f8f9fa;
    }
}

/* Print Styles */
@media print {
    .btn,
    .modal,
    .alert,
    .batch-controls,
    .form-container,
    footer {
        display: none !important;
    }
    
    .translation-box {
        break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}