/* Premium OCR PDF page styling matching tasarim_kodlari/ocr-pdf.html */

#tool-workspace {
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 0 54px;
    width: 100%;
}

.main-layout {
    display: grid;
    grid-template-columns: 1.75fr 0.82fr;
    gap: 30px;
    align-items: start;
    width: 100%;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.dropzone {
    border: 2px dashed #a78bfa;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #faf7ff);
    min-height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone:hover {
    border-color: #FF8A3D;
    background: linear-gradient(180deg, #ffffff, #f5f0ff);
}

.drop-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF5A3C, #FF8A3D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.dropzone h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.dropzone .or {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.dropzone p {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
}

.file-card {
    overflow: hidden;
    margin-bottom: 18px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.file-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-icon {
    width: 44px;
    height: 52px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.pdf-icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 12px solid #fecaca;
    border-left: 12px solid transparent;
    border-radius: 0 8px 0 0;
}

.file-title {
    font-weight: 800;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    color: #64748b;
    font-size: 14px;
}

.scanned-label {
    color: #ef4444;
    font-weight: 800;
}

.remove-btn {
    border: none;
    background: transparent;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ef4444;
}

.file-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 28px;
    border-bottom: 1px solid #e5e7eb;
}

.stat {
    border-right: 1px solid #e5e7eb;
    padding-left: 22px;
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border-right: none;
}

.stat-label {
    color: #334155;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-value {
    font-size: 18px;
    font-weight: 900;
}

.scan-note {
    margin: 20px 28px;
    padding: 16px 18px;
    border-radius: 13px;
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    display: flex;
    align-items: center;
    gap: 16px;
}

.scan-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ede9fe;
    color: #FF8A3D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.scan-note h4 {
    margin-bottom: 5px;
    font-weight: 700;
}

.scan-note p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.preview-card {
    padding: 22px;
}

.preview-card h3 {
    font-size: 17px;
    margin-bottom: 14px;
    font-weight: 800;
}

.ocr-preview {
    display: grid;
    grid-template-columns: 1fr 58px 1fr;
    gap: 18px;
    align-items: center;
}

.preview-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    min-height: 150px;
    overflow: hidden;
}

.preview-box-title {
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155;
}

.scanned-page {
    height: 105px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px 20px;
    filter: blur(0.35px);
    overflow: hidden;
}

.scan-line {
    height: 5px;
    background: #94a3b8;
    border-radius: 99px;
    margin-bottom: 8px;
    opacity: 0.55;
}

.scan-line.short {
    width: 72%;
}

.arrow-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5A3C, #FF8A3D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(255, 90, 60, 0.25);
    margin: 0 auto;
}

.text-preview {
    color: #0f172a;
    line-height: 1.6;
    font-size: 14px;
}

.text-preview strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.settings-card {
    padding: 28px;
}

.settings-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label,
.section-label {
    display: block;
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 800;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "⌄";
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #475569;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-box-custom {
    padding-right: 30px;
}

.select-box {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.select-box select {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.format-card {
    min-height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.format-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.format-card.active {
    border-color: #FF8A3D;
    background: #faf5ff;
    color: #FF5A3C;
    box-shadow: 0 8px 20px rgba(255, 138, 61, 0.08);
}

.format-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    font-weight: 900;
    flex-shrink: 0;
}

.pdf-format {
    background: #FF5A3C;
}

.word-format {
    background: #2563eb;
}

.excel-format {
    background: #16a34a;
}

.text-format {
    background: #64748b;
}

.format-sub {
    display: block;
    font-weight: 500;
    color: #64748b;
    font-size: 11px;
    margin-top: 3px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
}

.option {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    user-select: none;
}

.option input {
    width: 20px;
    height: 20px;
    accent-color: #FF5A3C;
    margin-top: 2px;
    cursor: pointer;
}

.option-title {
    font-weight: 800;
    color: #334155;
    margin-bottom: 4px;
    font-size: 14px;
}

.option-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.info-box {
    border: 1px solid #ddd6fe;
    background: #faf5ff;
    border-radius: 11px;
    padding: 15px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    color: #475569;
    line-height: 1.5;
    font-size: 13px;
    margin-bottom: 16px;
}

.info-icon {
    color: #FF5A3C;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.ocr-btn {
    width: 100%;
    height: 58px;
    font-size: 17px;
    border-radius: 12px;
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, #FF5A3C, #FF8A3D) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 13px 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 90, 60, 0.25);
    transition: opacity 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.safe-note {
    margin-top: 17px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.safe-note strong {
    color: #16a34a;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 38px;
    overflow: hidden;
    width: 100%;
}

.feature {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 28px 34px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature:first-child {
    border-radius: 18px 0 0 18px;
}

.feature:last-child {
    border-radius: 0 18px 18px 0;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.green {
    background: #dcfce7;
    color: #16a34a;
}

.purple {
    background: #f3e8ff;
    color: #FF8A3D;
}

.blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 7px;
    font-weight: 700;
}

.feature p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.disabled-opacity {
    opacity: 0.5;
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature,
    .feature:first-child,
    .feature:last-child {
        border-radius: 18px;
    }

    .ocr-preview {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .arrow-circle {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .file-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-left: 0;
        padding-bottom: 14px;
    }

    .stat:last-child {
        border-bottom: none;
    }

    .file-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    
    .remove-btn {
        align-self: flex-end;
    }

    .format-grid {
        grid-template-columns: 1fr;
    }
}
