/* Document Translation — Brand Orange Theme (#ff6725) */

.dt-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    padding: 32px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.dt-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.dt-search-hero-decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.dt-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.dt-search-hero-badge i { margin-right: 5px; }
.dt-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.dt-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.dt-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.dt-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.dt-search-hero + .dt-search-card { border-radius: 0 0 20px 20px !important; }
.dt-search-card { padding: 24px; }

/* Input Tabs */
.dt-input-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.dt-input-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    border: none;
    outline: none;
    transition: all 0.3s;
}
.dt-input-tab i { margin-right: 6px; }
.dt-input-tab.active {
    background: #e55a1b;
    color: #fff;
}
.dt-input-tab:not(.active):hover {
    background: #fff3ed;
    color: #e55a1b;
}
.dt-tab-panel { display: none; }
.dt-tab-panel.active { display: block; }

/* Textarea */
.dt-textarea {
    width: 100%;
    min-height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
    resize: vertical;
    transition: border-color 0.3s;
    caret-color: #FF6725;
}
.dt-textarea:focus {
    outline: none;
    border-color: #ff6725;
    background: #fff;
}
.dt-textarea::placeholder { color: #aaa; }

/* File Upload */
.dt-upload-area {
    border: 2px dashed #ffd6c2;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fff5f1;
    transition: all 0.3s;
}
.dt-upload-area:hover {
    border-color: #ff6725;
    background: #fff3ed;
}
.dt-upload-area i {
    font-size: 40px;
    color: #ff6725;
    margin-bottom: 12px;
    display: block;
}
.dt-upload-area p {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}
.dt-upload-area small {
    color: #999;
    font-size: 12px;
}
.dt-upload-input {
    display: none;
}
.dt-upload-btn {
    display: inline-block;
    background: #e55a1b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    margin-top: 8px;
    transition: background 0.3s;
}
.dt-upload-btn:hover { background: #e55a1b; }
.dt-file-name {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #e55a1b;
    font-weight: 600;
}
.dt-file-name i { margin-right: 4px; }

/* Progress Animation */
.dt-progress-area {
    display: none;
    padding: 30px;
    text-align: center;
}
.dt-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 10px 0 20px;
}
.dt-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    opacity: 0.35;
    transition: all 0.4s;
}
.dt-step.active, .dt-step.done { opacity: 1; }
.dt-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.4s;
}
.dt-step.active .dt-step-icon {
    background: #e55a1b;
    color: #fff;
    animation: dt-pulse 1.5s infinite;
}
.dt-step.done .dt-step-icon { background: #e55a1b; color: #fff; }
.dt-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    transition: color 0.4s;
}
.dt-step.active .dt-step-label { color: #e55a1b; }
.dt-step.done .dt-step-label { color: #e55a1b; }
.dt-step-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 6px;
    margin-bottom: 28px;
    transition: background 0.4s;
}
.dt-step-line.done { background: #e55a1b; }
@keyframes dt-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,53,147,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(40,53,147,0); }
}

/* Result — side-by-side translation */
.dt-result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
}
.dt-result-header {
    background: linear-gradient(135deg, #fff3ed 0%, #fff3ed 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.dt-translation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.dt-translation-panel {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}
.dt-panel-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dt-panel-header-original {
    background: #f5f5f5;
    color: #666;
}
.dt-panel-header-translated {
    background: #fff3ed;
    color: #e55a1b;
}
.dt-panel-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Summary card */
.dt-summary-card {
    background: #fff5f1;
    border: 1px solid #ffd6c2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.dt-summary-card h6 {
    font-size: 14px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 10px;
}
.dt-summary-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* Key Terms Table */
.dt-terms-section { margin-bottom: 20px; }
.dt-terms-section h6 {
    font-size: 14px;
    font-weight: 700;
    color: #e55a1b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff3ed;
}
.dt-terms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.dt-terms-table thead th {
    background: #e55a1b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
}
.dt-terms-table tbody td {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.dt-terms-table tbody tr:last-child td { border-bottom: none; }
.dt-terms-table tbody tr:nth-child(even) { background: #fafafe; }

/* Glossary — static table in SEO section */
.dt-glossary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}
.dt-glossary-table thead th {
    background: #e55a1b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
}
.dt-glossary-table tbody td {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.dt-glossary-table tbody tr:last-child td { border-bottom: none; }
.dt-glossary-table tbody tr:nth-child(even) { background: #fff5f1; }

/* Info Cards */
.dt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.dt-info-card {
    background: #fff5f1;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.dt-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,35,126,0.08);
}
.dt-info-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #e55a1b;
    margin: 0 0 8px;
}
.dt-info-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.dt-info-card i {
    font-size: 28px;
    color: #ff6725;
    margin-bottom: 12px;
    display: block;
}

/* Service message (before backend is wired) */
.dt-service-msg {
    text-align: center;
    padding: 30px;
}
.dt-service-msg i {
    font-size: 48px;
    color: #ff6725;
    margin-bottom: 16px;
    display: block;
}
.dt-service-msg h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.dt-service-msg p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* FAQ */
.dt-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.dt-faq-item.open { border-color: #ff6725; }
.dt-faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    background: #fafafa;
}
.dt-faq-question i { transition: transform 0.3s; color: #ff6725; }
.dt-faq-item.open .dt-faq-question i { transform: rotate(180deg); }
.dt-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.dt-faq-item.open .dt-faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* Results actions */
.dt-results-actions .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dt-search-hero { padding: 24px 18px 18px; }
    .dt-search-hero-title { font-size: 20px; }
    .dt-search-hero-desc { font-size: 13px; }
    .dt-search-card { padding: 18px; }
    .dt-translation-grid { grid-template-columns: 1fr; }
    .dt-info-grid { grid-template-columns: 1fr; }
    .dt-input-tab { font-size: 13px; padding: 10px 12px; }
    .dt-textarea { min-height: 160px; font-size: 14px; }
    .dt-upload-area { padding: 28px 16px; }
    .dt-upload-area i { font-size: 32px; }
}
@media (max-width: 576px) {
    .dt-step { min-width: 60px; }
    .dt-step-icon { width: 38px; height: 38px; font-size: 14px; }
    .dt-step-label { font-size: 10px; }
    .dt-step-line { width: 20px; }
    .dt-glossary-table, .dt-terms-table { font-size: 13px; }
    .dt-glossary-table thead th, .dt-terms-table thead th { font-size: 11px; padding: 10px 12px; }
    .dt-glossary-table tbody td, .dt-terms-table tbody td { padding: 8px 12px; font-size: 13px; }
}

/* Print */
@media print {
    .dashboard-side-menu, .dashboard-header, .dt-search-hero, .dt-search-card,
    .related-tool-card, #tool-article, .dt-faq-item, footer, nav, .breadcrumb,
    .dt-results-actions, #dt-progress-area { display: none !important; }
    .dt-result-card { box-shadow: none !important; border: 1px solid #ddd; }
    .dt-result-card::before {
        content: 'Document Translation — Source: tg.verified.realestate — Date: attr(data-date)';
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    .dt-translation-grid { grid-template-columns: 1fr 1fr; }
    .dt-panel-body { max-height: none; overflow: visible; }
}

.svg-container {
    width: 100%;
    height: auto;
}
svg {
    width: 100%;
    height: auto;
}
.translation-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,248,244,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.loader-card {
    background: white;
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 25px 80px rgba(255, 103, 37, 0.15), 0 10px 30px rgba(0,0,0,0.1);
    max-width: 480px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 103, 37, 0.1);
}
.loader-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}
.loader-circle {
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    inset: 0;
    margin: auto;
}
.loader-circle-outer {
    width: 120px;
    height: 120px;
    border-top-color: #FF6725;
    animation: dt-spin 1.5s linear infinite;
}
.loader-circle-middle {
    width: 96px;
    height: 96px;
    border-right-color: #ff8c5a;
    animation: dt-spin 1.2s linear infinite reverse;
}
.loader-circle-inner {
    width: 72px;
    height: 72px;
    border-bottom-color: #ffb899;
    animation: dt-spin 0.9s linear infinite;
}
.loader-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FF6725;
    animation: dt-pulse-icon 2s ease-in-out infinite;
}
@keyframes dt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes dt-pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.loader-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.loader-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}
.loader-stages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}
.loader-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.loader-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}
.loader-stage.completed:not(:last-child)::after {
    background: linear-gradient(90deg, #FF6725, #ff8c5a);
}
.stage-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}
.loader-stage.active .stage-icon {
    background: linear-gradient(135deg, #FF6725, #e55b1e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.4);
    animation: dt-stage-pulse 1.5s ease-in-out infinite;
}
.loader-stage.completed .stage-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}
@keyframes dt-stage-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 103, 37, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(255, 103, 37, 0.6); }
}
.stage-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s ease;
}
.loader-stage.active .stage-label,
.loader-stage.completed .stage-label {
    color: #333;
}
.loader-progress-container {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6725, #ff8c5a, #FF6725);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: dt-shimmer 2s linear infinite;
}
@keyframes dt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.loader-time {
    font-size: 24px;
    font-weight: 700;
    color: #FF6725;
    margin-bottom: 5px;
}
.loader-time-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}
.loader-tip {
    background: rgba(255, 248, 244, 0.8);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13px;
    color: #666;
    border: 1px solid rgba(255, 103, 37, 0.1);
}
.loader-tip i {
    color: #FF6725;
    margin-right: 6px;
}
.language-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(255, 248, 244, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 2px solid rgba(255, 103, 37, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    cursor: url(../dashboard/images/icon/pointer.svg), pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.language-option:hover {
    border-color: #FF6725;
    background: rgba(255, 103, 37, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.15);
}
.language-option.active {
    border-color: #FF6725;
    background: #FF6725;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.3);
}
.arrow-icon {
    font-size: 24px;
    color: #FF6725;
    margin: 0 10px;
}
.supported-formats {
    background: rgba(255, 248, 244, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 103, 37, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.supported-formats h6 {
    color: #FF6725;
    font-weight: 600;
    margin-bottom: 15px;
}
.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.format-tag {
    background: linear-gradient(135deg, #FF6725, #e55b1e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 103, 37, 0.2);
    transition: all 0.3s ease;
}
.format-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.3);
}
@media (max-width: 480px) {
    .loader-card {
        padding: 30px 25px;
    }
    .loader-animation {
        width: 100px;
        height: 100px;
    }
    .loader-title {
        font-size: 18px;
    }
    .stage-label {
        font-size: 10px;
    }
    .loader-stages {
        padding: 0;
    }
}
@media (max-width: 768px) {
    .language-toggle {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    .language-option {
        min-width: 120px;
        padding: 10px 15px;
    }
    .arrow-icon {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    .supported-formats {
        padding: 15px;
    }
    .format-list {
        justify-content: center;
    }
}
