/**
 * MVD Quick Links Styles
 * Dependency: mvd-core-css (Font Awesome, base styles)
 */

/* ─── Toolbar Container ───────────────────────────── */
.mvd-quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    min-height: 44px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.mvd-quick-links__items {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

/* ─── Shortcut Item ──────────────────────────────── */
.mvd-quick-links__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.mvd-quick-links__item:hover {
    opacity: 0.85;
    text-decoration: none;
}

.mvd-quick-links__icon {
    font-size: 14px;
    flex-shrink: 0;
}

.mvd-quick-links__title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* ─── Gear Button ────────────────────────────────── */
.mvd-quick-links__gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mvd-quick-links__gear:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #374151;
}

/* ─── Modal Form ─────────────────────────────────── */
.ql-form label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 12px;
    color: #374151;
}

.ql-form label:first-child {
    margin-top: 0;
}

.ql-form .swal2-input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.ql-form textarea.swal2-input {
    min-height: 60px;
    resize: vertical;
}

.ql-form label input[type="checkbox"] {
    margin-right: 6px;
}

/* ─── Color Swatches ─────────────────────────────── */
.ql-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ql-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: bold;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ql-swatch:hover {
    transform: scale(1.15);
}

.ql-swatch--selected {
    border-color: #374151;
    transform: scale(1.15);
}

/* ─── Tabulator Action Buttons ───────────────────── */
.ql-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.ql-btn--edit {
    color: #2563eb;
}

.ql-btn--edit:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.ql-btn--delete {
    color: #dc2626;
}

.ql-btn--delete:hover {
    background-color: rgba(220, 38, 38, 0.1);
}
