/* /tools/mood-board-studio/style.css */

/* --- Studio Toolbar Mobile Fixes --- */
.ac-studio-toolbar {
    flex-wrap: wrap;
    height: auto !important;
    /* Override inline height */
    min-height: 60px;
    padding: 10px 15px !important;
    gap: 10px;
}

.ac-toolbar-group {
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .ac-studio-toolbar {
        flex-direction: column;
        align-items: center;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .ac-toolbar-group {
        width: 100%;
        margin-bottom: 5px;
    }

    .ac-sep {
        display: none;
    }
}


/* --- Custom Tool Assets --- */

/* --- Manager View --- */
.ac-project-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ac-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.ac-card-preview {
    height: 140px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3em;
}

.ac-card-info {
    padding: 1em;
}

.ac-card-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-heading);
}

.ac-card-info small {
    color: var(--color-text-tertiary);
    font-size: 0.8em;
}

.ac-card-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.ac-project-card:hover .ac-card-actions {
    opacity: 1;
}

/* --- Studio View Workspace Specifics --- */
.ac-canvas-world {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    flex-grow: 1;
    /* Transformation handled by JS */
}

/* --- Properties Panel --- */

.ac-prop-row {
    margin-bottom: 12px;
}

.ac-prop-row label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text-secondary);
}

.ac-prop-row input[type="range"] {
    width: 100%;
}

/* --- Board Items --- */
.ac-board-item {
    position: absolute;
    /* user-select: none; */
    touch-action: none;
    box-sizing: border-box;
}

.ac-board-item.selected {
    outline: 2px solid var(--color-primary);
}

.ac-board-item.selected .actb-resize-handle {
    display: block;
}

.ac-board-item.locked {
    pointer-events: none;
    opacity: 0.7;
}

.actb-resize-handle {
    display: none;
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border: 1px solid #fff;
    bottom: -5px;
    right: -5px;
    cursor: nwse-resize;
}

/* Specific Items */
.ac-board-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.ac-board-item textarea {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-family: 'Marker Felt', 'Comic Sans MS', sans-serif;
    line-height: 1.4;
}

.ac-board-item textarea:focus {
    outline: none;
}

.ac-board-item.is-shape {
    overflow: visible;
}

.ac-board-item svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Palette Grid */
.ac-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.ac-p-swatch {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ac-p-swatch:hover {
    transform: scale(1.1);
}

/* --- Colors Box --- */
.ac-bg-picker {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--color-border);
    padding: 2px 5px;
    border-radius: 4px;
}

.ac-bg-picker input {
    border: none;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    cursor: pointer;
}