/* ============================================================
   FireWeb — Properties Inspector Styles
   ============================================================ */

#properties-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #2f2f2f 0%, #2a2a2a 100%);
}

.props-header {
    display: flex;
    align-items: center;
    height: 22px;
    min-height: 22px;
    padding: 0 var(--space-md);
    background: var(--bg-panel-header);
    border-bottom: 1px solid var(--border-dark);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.props-content {
    flex: 1;
    display: flex;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-lg);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
}

.props-content::-webkit-scrollbar {
    height: 4px;
}

.props-content::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 2px;
}

/* ---- Property Sections ---- */
.props-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
    min-width: 0;
}

.props-section-title {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xxs);
    font-weight: 600;
}

.props-divider {
    width: 1px;
    align-self: stretch;
    background: var(--border-dark);
    margin: 0 var(--space-xs);
    flex-shrink: 0;
}

/* ---- Transform Section ---- */
.props-transform {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: var(--space-xxs) var(--space-xs);
    align-items: center;
}

.props-transform label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-align: right;
    font-weight: 500;
}

.props-transform input {
    width: 56px;
}

/* ---- Fill/Stroke Section ---- */
.props-fill-stroke {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.props-fill-row,
.props-stroke-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.props-fill-type,
.props-stroke-style {
    width: 70px;
}

.props-stroke-width {
    width: 40px;
}

/* ---- Opacity & Blend ---- */
.props-opacity-blend {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.props-opacity-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.props-opacity-slider {
    width: 80px;
}

.props-opacity-input {
    width: 48px;
}

.props-blend-select {
    width: 100px;
}

/* ---- Filters Section ---- */
.props-filters {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
    min-width: 280px;
    flex: 1;
    align-self: stretch;
}

.props-filters-container {
    display: flex;
    gap: var(--space-xs);
    flex: 1;
    min-height: 0;
}

.props-filters-list {
    overflow-y: auto;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    min-height: 28px;
    min-width: 110px;
    flex: 0 0 auto;
    align-self: stretch;
}

.props-filters-list::-webkit-scrollbar {
    width: 4px;
}

.props-filters-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
}

.props-filter-params {
    flex: 1;
    min-width: 140px;
    max-width: 250px;
    overflow-y: auto;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
}

.props-filter-params::-webkit-scrollbar {
    width: 4px;
}

.props-filter-params::-webkit-scrollbar-thumb {
    background: var(--border-medium);
}

.props-inline-filter-param {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 3px 0;
}

.props-inline-filter-param label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 500;
}

.props-inline-filter-param .fw-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 50px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.props-inline-filter-param .fw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
}

.props-inline-filter-param .fw-slider::-webkit-slider-thumb:hover {
    background: var(--text-bright);
}

.props-inline-filter-param .fw-input-sm {
    width: 48px;
    flex-shrink: 0;
}

.props-filter-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px var(--space-xs);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.props-filter-item:hover {
    background: var(--bg-hover);
}

.props-filter-item.selected {
    background: var(--bg-selected);
    color: var(--text-bright);
}

.props-filter-item .filter-eye {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.props-filter-item .filter-eye.enabled {
    color: var(--text-secondary);
}

.props-filter-item .filter-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.props-filters > .props-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    height: 12px;
    overflow: visible;
}

.props-filters-actions {
    display: flex;
    gap: var(--space-xxs);
    line-height: 1;
}

.props-filters-actions .fw-icon-btn {
    padding: 0;
    line-height: 1;
    font-size: var(--font-size-xs);
    height: auto;
}

/* ---- Text Properties ---- */
.props-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.props-text-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.props-font-family {
    width: 140px;
}

.props-font-size {
    width: 48px;
}

.props-text-align {
    display: flex;
    gap: 1px;
    background: var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.props-text-align button {
    width: 22px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.props-text-align button:hover {
    background: var(--bg-hover);
}

.props-text-align button.active {
    background: var(--bg-selected);
    color: var(--text-bright);
}

.props-text-align button svg {
    width: 12px;
    height: 12px;
}

/* ---- Gradient Editor ---- */
.props-gradient-editor {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.props-gradient-bar {
    width: 100%;
    height: 20px;
    border-radius: var(--radius-sm);
    cursor: crosshair;
    border: 1px solid var(--border-medium);
}

.props-gradient-stops {
    position: relative;
    height: 14px;
    margin: 0 2px;
}

.props-gradient-stop-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--text-secondary);
    border-radius: 2px;
    transform: translateX(-5px);
    cursor: pointer;
    top: 2px;
    transition: border-color 0.1s;
}

.props-gradient-stop-marker:hover {
    border-color: var(--text-bright);
}

.props-gradient-stop-marker.selected {
    border-color: var(--accent);
    box-shadow: 0 0 3px var(--accent);
}

.props-gradient-stop-edit {
    min-height: 0;
}

.props-gradient-stop-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 0;
    font-size: 9px;
    color: var(--text-muted);
}

/* ---- No Selection State ---- */
.props-no-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* ---- Document properties ---- */
.props-document {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
