/**
 * Medications Modal Styles
 * 
 * Responsive modal design for medication details
 * Optimized for both desktop and mobile devices
 * 
 * @package Railway_Info
 * @since 1.0.0
 */

/* Modal Overlay */
.medication-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.medication-modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.medication-modal {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-active .medication-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Content */
.modal-content {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    padding: 25px;
    background: #ffffff;
}

/* Loading and Error States */
.modal-loading,
.modal-error {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
}

.modal-loading {
    color: #667eea;
}

.modal-error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* Medication Details Full */
.medication-details-full {
    line-height: 1.6;
}

/* Professional Header (inspired by medicament.ma) */
.medication-professional-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Language toggle styling */
.language-toggle {
    display: flex;
    gap: 5px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #6c757d;
    min-width: 50px;
}

.lang-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

.lang-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

/* RTL Support */
.rtl-modal .medication-details-full {
    direction: rtl;
    text-align: right;
}

.rtl-modal .header-content {
    flex-direction: row-reverse;
}

/* RTL Data Row Layout - Arabic labels on right, values on left */
.rtl-modal .data-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
}

.rtl-modal .data-label-container {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 20px;
    flex-direction: row-reverse;
}

.rtl-modal .data-value-container {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.rtl-modal .data-label {
    text-align: left;
}

.rtl-modal .data-value {
    text-align: right;
}

/* Enhanced data arrow styling */
.data-arrow {
    color: #6c757d;
    font-weight: 400;
    font-size: 1.1em;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    position: relative;
}

.data-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    border-right: 4px solid currentColor;
    transform: translate(-50%, -50%) rotate(180deg);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.data-arrow:hover {
    opacity: 1;
    transform: translateX(-2px);
    color: #495057;
}

.data-arrow:hover::before {
    opacity: 0.6;
}

.rtl-modal .data-arrow {
    color: #007bff;
    opacity: 0.9;
    margin: 0 8px;
}

.rtl-modal .data-arrow::before {
    border-right: 4px solid currentColor;
    transform: translate(-50%, -50%) rotate(0deg);
}

.rtl-modal .data-arrow:hover {
    color: #0056b3;
    opacity: 1;
    transform: translateX(2px);
}

.rtl-modal .medication-professional-header {
    border-left: none;
    border-right: 4px solid #007bff;
}

.rtl-modal .language-toggle {
    flex-direction: row-reverse;
}

/* RTL Price rows specific styling */
.rtl-modal .price-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.rtl-modal .price-row .data-label-container {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 20px;
    flex-direction: row-reverse;
}

.rtl-modal .price-row .data-value-container {
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.rtl-modal .price-row .data-label {
    text-align: left;
}

.rtl-modal .price-row .data-value {
    text-align: right;
}

/* RTL Section headers */
.rtl-modal .section-title {
    text-align: right;
}

.rtl-modal .section-content {
    text-align: right;
    direction: rtl;
}

/* RTL for body when modal is open */
body.rtl-modal {
    direction: rtl;
}

/* SEO Protection: Read More Button */
.read-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.read-more-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Content Source Attribution */
.content-source {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
}

.content-source small {
    color: #6c757d;
    font-size: 0.8em;
    font-style: italic;
}

/* RTL adjustments for read more button */
.rtl-modal .read-more-btn {
    margin-top: 10px;
}

.rtl-modal .content-source {
    border-left: none;
    border-right: 3px solid #6c757d;
    text-align: right;
}

/* Mobile responsive for language toggle */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .language-toggle {
        align-self: flex-end;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 45px;
    }
    
    /* RTL mobile adjustments */
    .rtl-modal .header-content {
        align-items: flex-end;
    }
    
    .rtl-modal .language-toggle {
        align-self: flex-start;
    }
    
    /* RTL mobile data rows */
    .rtl-modal .data-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rtl-modal .data-label-container {
        width: 100%;
        padding-left: 0;
        margin-bottom: 5px;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    .rtl-modal .data-arrow {
        display: none;
    }

    .data-arrow {
        font-size: 1em;
        margin: 0 4px;
    }

    .rtl-modal .data-arrow {
        margin: 0 4px;
    }
    
    .rtl-modal .data-value-container {
        width: 100%;
        padding-right: 0;
    }
    
    .rtl-modal .data-label {
        text-align: left;
        width: 100%;
    }
    
    .rtl-modal .data-value {
        text-align: right;
        width: 100%;
    }
    
    .rtl-modal .price-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rtl-modal .price-row .data-label-container {
        width: 100%;
        padding-left: 0;
        margin-bottom: 5px;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    .rtl-modal .price-row .data-value-container {
        width: 100%;
        padding-right: 0;
    }
    
    .rtl-modal .price-row .data-label {
        text-align: left;
        width: 100%;
    }
    
    .rtl-modal .price-row .data-value {
        text-align: right;
        width: 100%;
    }
}

.medication-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

.medication-seo-link {
    margin-top: 8px;
}

.seo-page-link {
    display: inline-flex;
    align-items: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.seo-page-link:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.medication-status-badge {
    display: inline-block;
}

.status-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Professional Data Table (like medicament.ma) */
.medication-data-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

/* RTL Data Table - Remove padding for extreme positioning */
.rtl-modal .medication-data-table {
    padding: 20px 0;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: #495057;
    min-width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
}

.data-value {
    color: #212529;
    text-align: right;
    flex-grow: 1;
    word-wrap: break-word;
}

/* Enhanced Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

/* RTL Pricing Section - Remove padding for extreme positioning */
.rtl-modal .pricing-section {
    padding: 15px 0;
}

.price-row {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-value {
    font-weight: 700;
    font-size: 1.1em;
}

.ppv-price {
    color: #28a745;
}

.hospital-price {
    color: #007bff;
}

/* Medication Sections */
.medication-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.medication-section h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    color: #34495e;
    text-align: right;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Enhanced Medication Sections with Priority */
.medication-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.medication-section.high-priority {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.medication-section.medium-priority {
    border-left-color: #ffc107;
    background: #fffdf5;
}

.medication-section.low-priority {
    border-left-color: #28a745;
    background: #f5fff5;
}

.medication-section h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    color: #34495e;
    text-align: right;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Professional Timestamps */
.medication-timestamps {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    border-left: 3px solid #17a2b8;
}

.timestamp {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.timestamp:last-child {
    margin-bottom: 0;
}

.timestamp-label {
    font-weight: 600;
    color: #495057;
}

.timestamp-value {
    color: #6c757d;
}

/* Professional Footer */
.medication-professional-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.source-link {
    margin-bottom: 20px;
    text-align: center;
}

.professional-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.professional-source-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Social Sharing (inspired by medicament.ma) */
.social-sharing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sharing-label {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.sharing-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.facebook-btn {
    background: #3b5998;
    color: white;
}

.facebook-btn:hover {
    background: #2d4373;
    transform: translateY(-1px);
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}

.twitter-btn:hover {
    background: #0d8bd9;
    transform: translateY(-1px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-1px);
}

/* Body Modal Open State */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .medication-modal {
        max-width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.2em;
    }
    
    .modal-content {
        padding: 20px;
        max-height: calc(96vh - 80px);
    }
    
    .medication-title {
        font-size: 1.6em;
    }

    .seo-page-link {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    
    .data-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-label {
        min-width: auto;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .data-value {
        text-align: left;
    }
    
    .social-sharing {
        flex-direction: column;
        gap: 10px;
    }
    
    .sharing-buttons {
        justify-content: center;
    }
    
    .medication-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .medication-section h4 {
        font-size: 1.1em;
    }
    
    .modal-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .medication-modal {
        margin: 1vh auto;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-content {
        padding: 15px;
        max-height: calc(98vh - 70px);
    }
    
    .medication-basic-info h3 {
        font-size: 1.3em;
    }
    
    .medication-section {
        padding: 12px;
    }
    
    .price-ppv,
    .price-ppc {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animation for content loading */
.medication-details-full {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.medication-modal:focus {
    outline: none;
}

.medication-modal:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .medication-modal {
        border: 2px solid #000000;
    }
    
    .modal-header {
        background: #000000;
        color: #ffffff;
    }
    
    .medication-section {
        border: 1px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .medication-modal-overlay,
    .medication-modal,
    .modal-close,
    .medication-source a,
    .medication-details-full {
        transition: none;
        animation: none;
    }
}

/* ========================================
   LANGUAGE TOGGLE & RTL SUPPORT
   ======================================== */

/* Language Toggle Button */
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.language-toggle.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.language-toggle .flag-icon {
    font-size: 16px;
}

.language-toggle .language-text {
    font-weight: 600;
}

/* Language Toggle Container */
.medication-language-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.medication-language-controls .language-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

/* RTL Support for Arabic Text */
.medication-indications.rtl,
.medication-details.rtl,
.medication-description.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.6;
}

.medication-indications.rtl h4,
.medication-details.rtl h4,
.medication-description.rtl h4 {
    direction: rtl;
    text-align: right;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.medication-indications.rtl p,
.medication-details.rtl p,
.medication-description.rtl p {
    direction: rtl;
    text-align: right;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Arabic Text Styling */
.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 14px;
    color: #2c3e50;
}

.arabic-text h4,
.arabic-text h5 {
    direction: rtl;
    text-align: right;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.arabic-text p {
    direction: rtl;
    text-align: right;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Language Indicator */
.language-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    margin-left: 8px;
}

.language-indicator.arabic {
    background: #d1ecf1;
    color: #0c5460;
}

.language-indicator.french {
    background: #d4edda;
    color: #155724;
}

/* Translation Status */
.translation-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.translation-status.available {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.translation-status.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.translation-status.loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive Language Controls */
@media (max-width: 768px) {
    .medication-language-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .language-toggle {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .language-label {
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Animation for Language Switch */
.language-content {
    transition: all 0.3s ease;
}

.language-content.switching {
    opacity: 0.5;
    transform: translateY(5px);
}

.language-content.arabic {
    direction: rtl;
    text-align: right;
}

.language-content.french {
    direction: ltr;
    text-align: left;
}

/* Loading Spinner for Translations */
.translation-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.translation-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Arabic Typography */
.arabic-text {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.arabic-text strong,
.arabic-text b {
    font-weight: 600;
    color: #1a252f;
}

.arabic-text em,
.arabic-text i {
    font-style: italic;
    color: #495057;
}

/* Arabic List Styling */
.arabic-text ul,
.arabic-text ol {
    direction: rtl;
    text-align: right;
    padding-right: 20px;
    margin-bottom: 15px;
}

.arabic-text li {
    direction: rtl;
    text-align: right;
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Performance Optimization for RTL */
.rtl-content {
    contain: layout style;
    will-change: transform;
}

/* Accessibility Improvements */
.language-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.language-toggle[aria-pressed="true"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Print Styles for Arabic */
@media print {
    .arabic-text {
        direction: rtl;
        text-align: right;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .language-toggle {
        display: none;
    }
}
