/**
 * SDDP Gang Sheet Builder PRO - Wise DTF style layout
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --white: #fff;
    --yellow: #FFD60A;
    --red: #FF0040;
    --orange: #FF6B00;
    --green: #00C851;
    --blue: #0066FF;
    --grey-50: #fafafa;
    --grey-100: #f5f5f5;
    --grey-200: #e5e5e5;
    --grey-500: #737373;
    --grey-700: #404040;
    --purple: #0a0a0a;        /* SDDP: use black as primary accent */
    --sidebar-bg: #0a0a0a;    /* SDDP: sidebar is black */
    --sidebar-active: #1a1a1a;
}

html, body { height: 100%; overflow: hidden; }
.sddp-builder-body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--grey-100);
    color: var(--black);
    font-size: 13px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ============ TOP BAR ============ */
.sddp-topbar {
    background: var(--white);
    height: 64px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr auto 200px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--grey-200);
    position: relative;
    z-index: 100;
}

.sddp-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.sddp-brand strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--red), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sddp-brand span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--grey-500);
    margin-top: 2px;
}

.sddp-topbar-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sddp-qty-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-700);
}
.sddp-qty-input {
    position: relative;
    width: 75px;
}
.sddp-qty-input input {
    width: 100%;
    height: 36px;
    padding: 0 24px 0 10px;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    background: var(--white);
}
.sddp-qty-input input:focus { outline: none; border-color: var(--black); }
.sddp-qty-arrows {
    position: absolute;
    right: 4px;
    top: 3px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sddp-qty-arrows button {
    width: 16px;
    height: 14px;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 2px;
    font-size: 8px;
    color: var(--grey-700);
    line-height: 1;
    padding: 0;
}
.sddp-qty-arrows button:hover { background: var(--black); color: var(--yellow); }

.sddp-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.sddp-btn-primary {
    background: var(--black);
    color: var(--yellow);
    font-weight: 700;
}
.sddp-btn-primary:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }
.sddp-btn-dark {
    background: #262626;
    color: var(--white);
}
.sddp-btn-dark:hover { background: var(--black); }
.sddp-btn-ghost {
    background: var(--red);
    color: var(--white);
}
.sddp-btn-ghost:hover { background: #c8002f; }
.sddp-btn-orange {
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
    padding: 10px 20px;
}
.sddp-btn-orange:hover { background: #e55a00; }

.sddp-topbar-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
}

.sddp-topbar-right {
    display: flex;
    justify-content: flex-end;
}

.sddp-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--grey-200);
    border-radius: 100px;
    cursor: pointer;
}
.sddp-user:hover { border-color: var(--black); }
.sddp-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--red), var(--yellow));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
.sddp-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 11px;
}
.sddp-user-info strong { font-weight: 600; }
.sddp-user-info span { color: var(--grey-500); font-size: 10px; }
.sddp-user::after { content: '▾'; color: var(--grey-500); margin-left: 4px; }

/* ============ MAIN LAYOUT ============ */
.sddp-layout {
    display: grid;
    grid-template-columns: 70px 280px 1fr 260px;
    height: calc(100vh - 64px);
    background: var(--grey-100);
}

/* ============ LEFT ICON SIDEBAR ============ */
.sddp-icon-sidebar {
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.sddp-icon-btn {
    background: transparent;
    border: none;
    padding: 15px 5px;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sddp-icon-btn:hover { background: rgba(255,214,10,0.08); color: var(--yellow); }
.sddp-icon-btn.active {
    background: rgba(255,214,10,0.12);
    color: var(--yellow);
    border-left-color: var(--yellow);
}
.sddp-icon-btn .icon { font-size: 20px; }
.sddp-icon-btn .label { font-weight: 500; }

/* ============ LEFT PANEL ============ */
.sddp-left-panel {
    background: var(--white);
    border-right: 1px solid var(--grey-200);
    overflow-y: auto;
    padding: 20px 15px;
}

.sddp-panel { display: none; }
.sddp-panel.active { display: block; }

.sddp-upload-section {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 15px;
}

.sddp-drop-text {
    font-size: 13px;
    color: var(--grey-700);
    margin-bottom: 12px;
}

.sddp-btn-upload {
    background: var(--black);
    color: var(--yellow);
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
}
.sddp-btn-upload:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }

.sddp-upload-hint {
    font-size: 10px;
    color: var(--grey-500);
    margin-top: 8px;
    line-height: 1.5;
}

.sddp-quick-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 15px;
}

.sddp-quick-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 12px;
    color: var(--grey-700);
    font-weight: 500;
    transition: all 0.2s;
}
.sddp-quick-tool:hover { border-color: var(--black); background: var(--grey-100); }

.sddp-thumbnail-area {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sddp-empty-state {
    text-align: center;
    color: var(--grey-500);
}

.sddp-empty-cursor {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}
.sddp-empty-square {
    position: absolute;
    top: 10px; left: 10px;
    width: 50px; height: 50px;
    border: 2px solid var(--grey-200);
    border-radius: 4px;
}
.sddp-empty-arrow {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 26px;
    color: var(--purple);
    transform: rotate(135deg);
}

.sddp-empty-state p {
    font-size: 13px;
}

.sddp-uploaded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

.sddp-uploaded-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-size: 12px;
}
.sddp-uploaded-item img {
    width: 32px; height: 32px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--grey-100);
}
.sddp-uploaded-item .info { flex: 1; }
.sddp-uploaded-item button {
    background: transparent;
    border: none;
    color: var(--red);
    font-size: 14px;
}

/* ============ SETTINGS PANEL ============ */
.sddp-settings-list {
    padding: 10px 5px;
}

.sddp-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 15px;
    border-bottom: 1px solid var(--grey-100);
    font-size: 13px;
    color: var(--grey-700);
    font-weight: 500;
}

.sddp-setting-sub {
    padding: 0 15px 14px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--grey-100);
    font-size: 12px;
    color: var(--grey-500);
}

.sddp-num-input-wrap {
    position: relative;
    width: 80px;
}
.sddp-num-input-wrap input {
    width: 100%;
    height: 30px;
    padding: 0 22px 0 8px;
    border: 1px solid var(--grey-200);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
}
.sddp-num-arrows {
    position: absolute;
    right: 2px;
    top: 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sddp-num-arrows button {
    width: 14px;
    height: 12px;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 1px;
    font-size: 7px;
    padding: 0;
    line-height: 1;
    color: var(--grey-700);
}
.sddp-num-arrows button:hover { background: var(--purple); color: var(--white); }

/* Switch (toggle) */
.sddp-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    cursor: pointer;
}
.sddp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.sddp-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--grey-200);
    border-radius: 22px;
    transition: .3s;
}
.sddp-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sddp-switch input:checked + .sddp-slider {
    background: var(--purple);
}
.sddp-switch input:checked + .sddp-slider:before {
    transform: translateX(20px);
}

/* Visual Aid block */
.sddp-setting-block {
    padding: 14px 15px;
    border-bottom: 1px solid var(--grey-100);
}
.sddp-block-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--grey-700);
    margin-bottom: 10px;
}

.sddp-visual-aid-swatches {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}
.sddp-va-swatch {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.sddp-va-swatch.transparent {
    background: repeating-conic-gradient(#d0d0d0 0% 25%, white 0% 50%) 0 0 / 8px 8px;
}
.sddp-va-swatch:hover { transform: scale(1.05); }
.sddp-va-swatch.active { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(255,214,10,.2); }

.sddp-color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}
.sddp-color {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    transition: all .15s;
}
.sddp-color:hover {
    transform: scale(1.15);
    z-index: 1;
    border-color: var(--black);
}

.sddp-custom-color-picker {
    width: 100%;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    background: linear-gradient(90deg,
        #ff0000 0%, #ff8800 14%, #ffee00 28%, #00ff00 42%,
        #00ffff 56%, #0088ff 70%, #8800ff 84%, #ff00ff 100%
    );
    border: 1px solid var(--grey-200);
}

/* ============ CANVAS SECTION ============ */
.sddp-canvas-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--grey-50);
}

.sddp-canvas-toolbar {
    background: var(--white);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey-200);
    gap: 15px;
    flex-wrap: wrap;
}

.sddp-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sddp-size-select {
    height: 36px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23737373' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.sddp-size-select:focus { outline: none; border-color: var(--black); }

.sddp-tool-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    color: var(--grey-700);
    font-size: 16px;
    transition: all 0.2s;
}
.sddp-tool-btn:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }
.sddp-tool-btn.active { background: var(--purple); color: var(--white); border-color: var(--purple); }

.sddp-margin-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--grey-200);
    font-size: 13px;
}

.sddp-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}
.sddp-checkbox input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--green);
}

.sddp-margin-input {
    position: relative;
    width: 70px;
}
.sddp-margin-input input {
    width: 100%;
    height: 30px;
    padding: 0 22px 0 8px;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.sddp-margin-arrows {
    position: absolute;
    right: 2px;
    top: 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sddp-margin-arrows button {
    width: 14px; height: 12px;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 1px;
    font-size: 7px;
    padding: 0;
    color: var(--grey-700);
    line-height: 1;
}
.sddp-margin-arrows button:hover { background: var(--black); color: var(--yellow); }

/* ============ LEGEND ============ */
.sddp-legend {
    background: var(--white);
    padding: 10px 15px;
    border-bottom: 1px solid var(--grey-200);
    font-size: 11px;
}
.sddp-legend-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
}
.sddp-legend-title input[type=checkbox] {
    width: 16px; height: 16px;
    accent-color: var(--green);
}
.sddp-legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.sddp-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--grey-700);
    font-size: 11px;
}
.sddp-legend-item .dot {
    width: 14px; height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}
.sddp-legend-item .dot.green { background: #22c55e; }
.sddp-legend-item .dot.yellow { background: #fcd34d; }
.sddp-legend-item .dot.orange { background: #fb923c; }
.sddp-legend-item .dot.red { background: #ef4444; }
.sddp-legend-item .dot.black { background: #0a0a0a; }
.sddp-legend-item .dot.blue { background: #3b82f6; }

/* ============ CANVAS CONTAINER WITH RULERS ============ */
.sddp-canvas-container {
    flex: 1;
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: 30px 1fr;
    overflow: hidden;
    background: #f9f9f9;
}

.sddp-ruler-top {
    grid-column: 2;
    grid-row: 1;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: relative;
    overflow: hidden;
    font-size: 10px;
    color: var(--grey-500);
}

.sddp-ruler-left {
    grid-column: 1;
    grid-row: 2;
    background: var(--white);
    border-right: 1px solid var(--grey-200);
    position: relative;
    overflow: hidden;
    font-size: 10px;
    color: var(--grey-500);
}

.sddp-canvas-area {
    grid-column: 2;
    grid-row: 2;
    overflow: auto;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f9f9f9;
}

.sddp-canvas-area .canvas-container {
    background: repeating-conic-gradient(#e5e5e5 0% 25%, #fafafa 0% 50%) 0 0 / 20px 20px !important;
    border: 2px dashed var(--blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sddp-canvas-area canvas {
    background: transparent !important;
}

/* ============ ZOOM CONTROLS ============ */
.sddp-zoom-controls {
    position: absolute;
    top: 40px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--grey-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 10;
}

.sddp-zoom-icon {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 12px;
    color: var(--grey-700);
    border-radius: 4px;
}
.sddp-zoom-icon:hover { background: var(--grey-100); }

.sddp-zoom-100 {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.sddp-zoom-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-700);
    min-width: 40px;
    text-align: right;
}

/* ============ BOTTOM LEFT CANVAS BUTTONS ============ */
.sddp-canvas-bottom-left {
    position: absolute;
    bottom: 15px;
    left: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.sddp-round-btn {
    width: 36px; height: 36px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    font-size: 16px;
    color: var(--purple);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sddp-round-btn:hover { background: var(--purple); color: var(--white); }

.sddp-btn-auto-build {
    background: var(--black);
    color: var(--yellow);
    border: none;
    padding: 9px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.sddp-btn-auto-build:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }

.sddp-canvas-footer-info {
    background: var(--white);
    padding: 8px 15px;
    font-size: 11px;
    color: var(--grey-500);
    border-top: 1px solid var(--grey-200);
    text-align: left;
}
.sddp-canvas-footer-info strong { color: var(--purple); font-weight: 700; }

/* ============ RIGHT SIDEBAR ============ */
.sddp-right-sidebar {
    background: var(--white);
    border-left: 1px solid var(--grey-200);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sddp-right-header {
    padding: 15px;
    border-bottom: 1px solid var(--grey-200);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sddp-right-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
}

.sddp-expand-btn {
    position: absolute;
    left: -12px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    font-size: 12px;
    color: var(--grey-500);
    box-shadow: -2px 2px 5px rgba(0,0,0,0.05);
}

.sddp-gang-sheets-list {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.sddp-gang-sheet-card {
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.sddp-gang-sheet-card.active {
    border-color: var(--purple);
    background: rgba(255, 214, 10, 0.03);
}

.sddp-sheet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 8px;
}
.sddp-sheet-header .sddp-sheet-size { flex: 1; }
.sddp-sheet-edit {
    background: transparent;
    border: none;
    color: var(--grey-500);
    font-size: 14px;
    padding: 2px;
}

.sddp-sheet-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.sddp-sheet-count {
    font-size: 12px;
    color: var(--grey-500);
    margin-bottom: 10px;
}

.sddp-sheet-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--grey-200);
    font-size: 12px;
}
.sddp-sheet-footer label { color: var(--grey-500); }

.sddp-qty-input.small { width: 60px; }
.sddp-qty-input.small input {
    height: 28px;
    font-size: 12px;
}

.sddp-duplicate-btn {
    background: transparent;
    border: none;
    color: var(--purple);
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}
.sddp-duplicate-btn:hover { text-decoration: underline; }

.sddp-right-actions {
    padding: 15px;
    border-top: 1px solid var(--grey-200);
}

.sddp-right-action {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 8px;
    text-align: left;
    font-size: 13px;
    color: var(--grey-700);
    border-radius: 6px;
    margin-bottom: 2px;
    font-weight: 500;
}
.sddp-right-action:hover {
    background: var(--grey-100);
    color: var(--purple);
}

.sddp-right-footer {
    padding: 10px 15px;
    font-size: 11px;
    color: var(--grey-500);
    border-top: 1px solid var(--grey-200);
    text-align: right;
}
.sddp-right-footer strong { color: var(--purple); }

/* ============ TOAST + MODAL ============ */
.sddp-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s;
}
.sddp-toast.show { transform: translateX(0); }

.sddp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.sddp-modal.show { display: flex; }
.sddp-modal-inner {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    text-align: center;
}
.sddp-modal-inner h2 { font-size: 26px; margin: 15px 0 10px; }
.sddp-modal-inner p { color: var(--grey-500); margin-bottom: 25px; }
.sddp-modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .sddp-layout { grid-template-columns: 70px 250px 1fr 0; }
    .sddp-right-sidebar { display: none; }
}
@media (max-width: 900px) {
    .sddp-layout { grid-template-columns: 60px 1fr; }
    .sddp-left-panel, .sddp-right-sidebar { display: none; }
    .sddp-topbar { grid-template-columns: 120px 1fr; }
    .sddp-topbar-title, .sddp-topbar-right { display: none; }
}
