/* =========================================
   BULK WATERMARK TOOL SPECIFIC CSS
   ========================================= */

/* Tool accent tint (derived from --cat-image), adapts to dark mode */
:root {
    --tool-accent-tint: #fffbeb;
}
[data-theme="dark"] {
    --tool-accent-tint: #451a03;
}

/* Hero Additions */
.tool-hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tool Interface */
.tool-interface-wrapper {
    padding: 2rem 0 4rem;
    background-color: var(--bg-main);
}

.tool-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Upload State Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-main);
    transition: all var(--transition-speed);
    cursor: pointer;
    max-width: 800px;
    margin: 0 auto;
}

.drop-zone.dragover {
    background: var(--tool-accent-tint);
    border-color: var(--cat-image);
}

.drop-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--tool-accent-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drop-zone h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.drop-zone p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    pointer-events: none;
}

.upload-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.supported-formats {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
    pointer-events: none;
}

/* Buttons */
.btn-primary-tool {
    background: var(--cat-image);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-primary-tool:hover {
    background: #92400e;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--cat-image);
    color: var(--cat-image);
}

/* Workspace Layout */
.workspace-state {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--card-shadow);
}

.workspace-row {
    margin: 0;
}

/* Settings Panel */
.settings-panel {
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.settings-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.file-count-badge {
    background: var(--cat-image);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: var(--border-color);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: var(--bg-main);
    color: var(--cat-image);
    box-shadow: 0 1px 3px var(--card-shadow);
}

/* Forms inside settings */
.settings-group label, .global-settings label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.settings-group label:first-child {
    margin-top: 0;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    border-color: var(--cat-image);
}

.color-picker {
    padding: 0.2rem;
    height: 40px;
    cursor: pointer;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Position Grid */
.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: var(--border-color);
    padding: 4px;
    border-radius: 8px;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.pos-cell {
    background: var(--bg-main);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pos-cell:hover {
    background: var(--bg-light);
}

.pos-cell.active {
    background: var(--cat-image);
}

.form-range {
    width: 100%;
    accent-color: var(--cat-image);
}

/* Preview Panel */
.preview-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.preview-header {
    margin-bottom: 1rem;
}

.preview-header h5 {
    margin: 0;
}

.preview-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkerboard-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
      linear-gradient(45deg, var(--border-color) 25%, transparent 25%),
      linear-gradient(-45deg, var(--border-color) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, var(--border-color) 75%),
      linear-gradient(-45deg, transparent 75%, var(--border-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    z-index: 1;
}

#preview-canvas {
    max-width: 100%;
    max-height: 500px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* Processing State */
.processing-state {
    padding: 4rem 2rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px var(--card-shadow);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--cat-image);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

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

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    margin: 1.5rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--cat-image);
    transition: width 0.1s linear;
}
/* Feature/Steps Overrides */
.step-card {
    padding: 2rem 1rem;
}
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--tool-accent-tint);
    color: var(--cat-image);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
/* Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
}

.accordion-header svg {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-content.open {
    max-height: 600px;
    padding: 0 1.25rem 1.25rem;
}@media (max-width: 991px) {
    .settings-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .preview-container {
        min-height: 300px;
    }
}
