/* ==========================================
   Ojoo Screenshot & Mockup Tools - Isolated Styles
   All selectors strictly scoped to .screenshot-tools-page
   Matching Remove Background design system
   ========================================== */

.screenshot-tools-page {
    --sht-primary: #0d6efd;
    --sht-accent: #6f42c1;
    --sht-card-bg: #ffffff;
    --sht-card-border: rgba(0, 0, 0, 0.08);
    --sht-card-hover-border: #0d6efd;
    --sht-text-primary: #212529;
    --sht-text-secondary: #6c757d;
    --sht-badge-bg: rgba(13, 110, 253, 0.1);
    --sht-dropzone-bg: #f8fafc;
    --sht-dropzone-border: #cbd5e1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme="dark"] .screenshot-tools-page,
body.dark-mode .screenshot-tools-page,
body.bg-dark .screenshot-tools-page {
    --sht-card-bg: #1e2430;
    --sht-card-border: rgba(255, 255, 255, 0.1);
    --sht-card-hover-border: #4792ff;
    --sht-text-primary: #f8f9fa;
    --sht-text-secondary: #a0aec0;
    --sht-badge-bg: rgba(13, 110, 253, 0.25);
    --sht-dropzone-bg: #161b26;
    --sht-dropzone-border: #334155;
}

/* Breadcrumb & Header */
.screenshot-tools-page .sht-breadcrumb {
    font-size: 0.875rem;
    color: var(--sht-text-secondary);
    margin-bottom: 0.75rem;
}

.screenshot-tools-page .sht-breadcrumb a {
    color: var(--sht-primary);
    text-decoration: none;
    font-weight: 500;
}

.screenshot-tools-page .sht-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(111, 66, 193, 0.04) 100%);
    border-bottom: 1px solid var(--sht-card-border);
    padding: 2.5rem 0 2rem 0;
}

.screenshot-tools-page .sht-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--sht-primary) 0%, var(--sht-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.screenshot-tools-page .sht-subtitle {
    font-size: 1.1rem;
    color: var(--sht-text-secondary);
    max-width: 850px;
    margin-bottom: 0.5rem;
}

/* Workflow Step Indicator */
.screenshot-tools-page .sht-workflow-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.screenshot-tools-page .sht-workflow-step {
    background: var(--sht-card-bg);
    border: 1px solid var(--sht-card-border);
    border-radius: 50rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sht-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.screenshot-tools-page .sht-workflow-step.active {
    background: var(--sht-primary);
    color: #ffffff;
    border-color: var(--sht-primary);
}

.screenshot-tools-page .sht-workflow-arrow {
    color: var(--sht-text-secondary);
    font-size: 0.75rem;
}

/* Dropzone */
.screenshot-tools-page .sht-dropzone {
    background: var(--sht-dropzone-bg);
    border: 2px dashed var(--sht-dropzone-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.screenshot-tools-page .sht-dropzone:hover,
.screenshot-tools-page .sht-dropzone.dragover {
    border-color: var(--sht-primary);
    background: var(--sht-badge-bg);
}

.screenshot-tools-page .sht-dropzone-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--sht-badge-bg);
    color: var(--sht-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

/* Preset Cards Grid */
.screenshot-tools-page .sht-preset-card {
    background: var(--sht-card-bg);
    border: 1px solid var(--sht-card-border);
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.screenshot-tools-page .sht-preset-card:hover,
.screenshot-tools-page .sht-preset-card.active {
    border-color: var(--sht-card-hover-border);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

/* Canvas & Stage Wrapper */
.screenshot-tools-page .sht-canvas-wrapper {
    position: relative;
    border: 1px solid var(--sht-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    transition: background 0.3s ease;
    background-color: #0f172a;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 16px 16px;
}

.screenshot-tools-page #shtMainCanvas {
    max-width: 100%;
    max-height: 460px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Panels & Controls */
.screenshot-tools-page .sht-panel {
    background: var(--sht-card-bg);
    border: 1px solid var(--sht-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.screenshot-tools-page .sht-form-control {
    background: var(--sht-card-bg);
    color: var(--sht-text-primary);
    border: 1px solid var(--sht-card-border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .screenshot-tools-page .sht-title { font-size: 1.75rem; }
    .screenshot-tools-page .sht-dropzone { padding: 2rem 1rem; }
    .screenshot-tools-page .sht-workflow-bar { flex-direction: column; }
}
