/* Premium Watermark PDF page styling matching tasarim_kodlari/add-watermark.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;
}

.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;
}

.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;
}

.stat {
    padding-left: 5px;
}

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

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

/* Previews Area */
.preview-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 14px;
}

.preview-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.select-box {
    height: 42px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    min-width: 90px;
    font-size: 13px;
}

.select-box-dropdown {
    width: 100%;
    outline: none;
    cursor: pointer;
}

.zoom-box {
    height: 42px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 40px 72px 40px;
    overflow: hidden;
    background: #ffffff;
}

.zoom-box button {
    border: none;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.1s;
}

.zoom-box button:hover {
    background-color: #f1f5f9;
}

.zoom-box button:last-child {
    border-right: none;
}

.zoom-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #334155;
    font-size: 13px;
    border-right: 1px solid #e5e7eb;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    color: #FF5A3C;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.nav-arrow:hover:not(:disabled) {
    background: #FF5A3C;
    color: #ffffff;
    border-color: #FF5A3C;
}

.nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prev-arrow {
    left: 16px;
}

.next-arrow {
    right: 16px;
}

/* Thumbnail Row */
.thumb-row {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    width: 100%;
    position: relative;
    padding: 10px 60px;
}

.page-thumb {
    width: 175px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}

.thumb-paper {
    height: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-paper canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-number-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Watermark Preview Overlay */
.watermark-preview-overlay {
    position: absolute;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 5;
    transform-origin: center center;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.watermark-preview-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sidebar Settings */
.settings-card {
    padding: 28px;
}

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

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

.form-group label {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 800;
}

.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.type-card {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #334155;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.type-card:hover {
    border-color: #cbd5e1;
}

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

.type-card span:first-child {
    font-size: 18px;
    font-weight: 900;
}

.input-box {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    padding: 0 14px;
    color: #0f172a;
    outline: none;
    font-weight: 700;
    font-size: 14px;
    transition: border-color 0.2s;
}

.input-box:focus {
    border-color: #FF8A3D;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.color-select {
    height: 46px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
}

.color-preview {
    width: 36px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.stepper {
    height: 46px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    overflow: hidden;
    background: #ffffff;
}

.stepper button {
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-weight: 900;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.1s;
}

.stepper button:hover {
    background-color: #f1f5f9;
}

.stepper button:first-child {
    border-right: 1px solid #e5e7eb;
}

.stepper button:last-child {
    border-left: 1px solid #e5e7eb;
}

.stepper span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
}

.opacity-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 10px;
    align-items: center;
    height: 46px;
}

.range {
    width: 100%;
    accent-color: #FF5A3C;
    cursor: pointer;
}

.opacity-value {
    font-weight: 800;
    color: #475569;
    font-size: 13px;
    text-align: right;
}

/* Position Grid selector */
.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    width: 110px;
}

.position-cell {
    height: 30px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.1s;
}

.position-cell:hover:not(.active) {
    background-color: #f8fafc;
}

.position-cell:nth-child(3n) {
    border-right: none;
}

.position-cell:nth-child(n+7) {
    border-bottom: none;
}

.position-cell::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.position-cell.active {
    background: linear-gradient(135deg, #FF5A3C, #FF8A3D);
}

.position-cell.active::after {
    background: #ffffff;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    color: #334155;
    font-weight: 800;
    cursor: pointer;
}

.check-row input {
    width: 20px;
    height: 20px;
    accent-color: #FF5A3C;
    cursor: pointer;
}

.watermark-btn {
    width: 100%;
    height: 56px;
    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 */
.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;
}

.hidden {
    display: none !important;
}

@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;
    }
}

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

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



.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-box-custom {
    position: relative;
    padding: 0 !important;
}

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

.select-wrapper::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-60%);
    pointer-events: none;
    font-weight: 900;
    color: #FF5A3C;
    font-size: 16px;
}

