/* ==========================================================
   SVG REGISTRY - PREMIUM COMPACT LAYOUT
========================================================== */

/* ----------------------------------------------------------
   ITEM CARD
---------------------------------------------------------- */

.smt-svg-item {
    border-radius: 12px;
    border: 1px solid #d8d8df;
    background: #f9f9fb;
    padding: 18px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.smt-svg-item:hover {
    background: #ffffff;
    border-color: #cfcfe6;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* ----------------------------------------------------------
   TOP ROW (Selector + Preview + Remove)
---------------------------------------------------------- */

.smt-svg-row-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Selector */
.smt-svg-col-selector {
    flex: 1;
}

.smt-svg-selector {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d2d2d8;
    background: #f9f9fb;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.smt-svg-selector:focus {
    border-color: #5e5df0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(94,93,240,0.15);
    outline: none;
}

/* Preview */
.smt-svg-col-preview {
    width: 220px;
}

.smt-svg-preview {
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e4e7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.smt-svg-preview:hover {
    border-color: #cfcfe6;
}

.smt-svg-preview svg {
    max-height: 34px;
    max-width: 180px;
}

/* Remove */
.smt-svg-col-remove {
    width: 90px;
    text-align: right;
}

/* ----------------------------------------------------------
   BOTTOM ROW (Textarea)
---------------------------------------------------------- */

.smt-svg-row-bottom {
    margin-top: 14px;
}

.smt-svg-markup {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d2d2d8;
    background: #f9f9fb;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    transition: all 0.2s ease;
}

.smt-svg-markup:focus {
    border-color: #5e5df0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(94,93,240,0.15);
    outline: none;
}

/* ----------------------------------------------------------
   ADD BUTTON
---------------------------------------------------------- */

.smt-svg-actions {
    margin-top: 18px;
}

#smt-svg-registry-save:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* ----------------------------------------------------------
   SUCCESS MESSAGE
---------------------------------------------------------- */

.smt-svg-success {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(94,93,240,0.08);
    color: #5e5df0;
    font-size: 14px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   MOBILE ADAPTATION
---------------------------------------------------------- */

@media (max-width: 900px) {

    .smt-svg-row-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .smt-svg-col-preview,
    .smt-svg-col-remove {
        width: 100%;
        text-align: left;
    }

    .smt-svg-markup {
        height: 110px;
    }
}
