/* Frame Shape Selection Grid */
.frame-shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.shape-item {
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.shape-item:hover {
    border-color: #5e72e4;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.15);
}

.shape-item.active {
    border-color: #5e72e4;
    background: rgba(94, 114, 228, 0.05);
}

.shape-item.active::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #5e72e4;
    font-size: 16px;
}

.shape-icon {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.shape-item:hover .shape-icon,
.shape-item.active .shape-icon {
    filter: grayscale(0);
}

.shape-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #32325d;
}

.shape-name-kh {
    display: block;
    font-size: 0.75rem;
    color: #8898aa;
    margin-top: 2px;
}


/* Skeleton Loading System */
.skeleton-loader {
    width: 100%;
    height: 100%;
    background-color: #f2f2f2;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    display: inline-block;
    border-radius: 8px;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    from {
        background-position: -200px 0;
    }
    to {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-label {
    height: 14px;
    width: 60px;
    margin-bottom: 8px;
}

.skeleton-input {
    height: 40px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-grid-item {
    height: 120px;
    width: 100%;
    border-radius: 12px;
}

.skeleton-text-area {
    height: 100px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-asset-card {
    height: 80px;
    width: 100%;
    border-radius: 12px;
}

/* Material Select2 Custom Styling */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #5e72e4;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f5365c;
    background: transparent;
}

/* Google Search Preview Mockup */
.google-preview-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 650px;
    font-family: Arial, sans-serif;
}

.google-url {
    font-size: 14px;
    color: #202124;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.google-title {
    font-size: 20px;
    color: #1a0dab;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    line-height: 1.3;
    cursor: pointer;
}

.google-title:hover {
    text-decoration: underline;
}

.google-description {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    word-wrap: break-word;
}

.google-site-icon {
    width: 26px;
    height: 26px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.google-breadcrumb {
    color: #5f6368;
    font-size: 12px;
}
