/* ============================================
   Slides Gallery - Wenti Labs
   Google Slides-inspired presentation gallery
   ============================================ */

/* ============================================
   Gallery Header
   ============================================ */

.slides-gallery-header {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, rgb(246, 245, 251) 0%, rgb(230, 228, 245) 100%);
    text-align: center;
}

.slides-gallery-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.slides-gallery-header-title {
    font-size: 60px;
    font-weight: 500;
    color: rgb(77, 75, 180);
    margin-bottom: 16px;
    line-height: 1.2;
}

.slides-gallery-header-subtitle {
    font-size: 18px;
    color: rgb(94, 80, 160);
    margin-top: 16px;
    margin-bottom: 0;
}

/* ============================================
   Gallery Section
   ============================================ */

.slides-gallery-section {
    padding: 80px 20px 120px;
    background-color: #fff;
}

.slides-gallery-container {
    max-width: 1260px;
    margin: 0 auto;
}

/* ============================================
   Quick Actions Bar
   ============================================ */

.slides-gallery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    gap: 20px;
    flex-wrap: wrap;
}

.slides-gallery-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.slides-gallery-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid rgb(230, 228, 238);
    border-radius: 12px;
    font-size: 15px;
    color: rgb(22, 22, 22);
    background-color: rgb(250, 250, 252);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.slides-gallery-search-input:focus {
    border-color: rgb(77, 75, 180);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(77, 75, 180, 0.1);
}

.slides-gallery-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.slides-gallery-btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.slides-gallery-import-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgb(246, 245, 251);
    color: rgb(77, 75, 180);
    border: 2px solid rgb(200, 195, 230);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.slides-gallery-import-btn:hover {
    transform: translateY(-2px);
    background: rgb(230, 228, 245);
    border-color: rgb(77, 75, 180);
    box-shadow: 0 4px 12px rgba(77, 75, 180, 0.15);
}

.slides-gallery-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgb(77, 75, 180) 0%, rgb(94, 80, 160) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(77, 75, 180, 0.25);
}

.slides-gallery-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 75, 180, 0.35);
}

/* ============================================
   Gallery Grid
   ============================================ */

.slides-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================
   Slide Card
   ============================================ */

.slide-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 1px solid rgb(240, 240, 245);
}

.slide-card-clickable {
    cursor: pointer;
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77, 75, 180, 0.12), 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgb(200, 195, 230);
}

/* Thumbnail */
.slide-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgb(246, 245, 251) 0%, rgb(230, 228, 245) 50%, rgb(200, 195, 230) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-card-thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgb(94, 80, 160);
    opacity: 0.6;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.slide-card-thumbnail-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.slide-card-thumbnail-text {
    font-size: 14px;
    font-weight: 500;
}

.slide-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.slide-card-thumbnail-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    pointer-events: none;
    background: #fff;
}

.slide-card-thumbnail.is-loaded .slide-card-thumbnail-placeholder {
    opacity: 0;
}

.slide-card:hover .slide-card-thumbnail img {
    transform: scale(1.05);
}

/* Archive section */
.slides-archive-section {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgb(236, 234, 244);
}

.slides-archive-section.is-empty {
    display: none;
}

.slides-archive-section.is-collapsed .slides-archive-grid {
    display: none;
}

.slides-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.slides-archive-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slides-archive-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1b1b1b;
}

.slides-archive-count {
    background: #f1f0f7;
    color: #5e50a0;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.slides-archive-toggle {
    background: transparent;
    border: 1px solid #d9d6ea;
    color: #4b4b4b;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Card Info */
.slide-card-info {
    padding: 20px;
}

.slide-card-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(22, 22, 22);
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgb(120, 120, 120);
    margin-bottom: 16px;
}

.slide-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slide-card-slide-count {
    padding: 4px 10px;
    background-color: rgb(246, 245, 251);
    border-radius: 6px;
    font-weight: 500;
    color: rgb(94, 80, 160);
}

/* Action Buttons */
.slide-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgb(240, 240, 245);
}

.slide-card-btn {
    flex: 1 1 120px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.slide-card-btn-primary {
    background: rgb(77, 75, 180);
    color: #fff;
}

.slide-card-btn-primary:hover {
    background: rgb(94, 80, 160);
}

.slide-card-btn-secondary {
    background: rgb(246, 245, 251);
    color: rgb(94, 80, 160);
    border: 1px solid rgb(230, 228, 238);
}

.slide-card-btn-secondary:hover {
    background: rgb(230, 228, 245);
    border-color: rgb(200, 195, 230);
}

/* Card Header with Tools */
.slide-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.slide-card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-card-icon-btn {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgb(230, 228, 238);
    background: #ffffff;
    color: rgb(120, 120, 140);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-card-icon-btn:hover {
    border-color: rgb(200, 195, 230);
    color: rgb(94, 80, 160);
    background: rgb(246, 245, 251);
}

.slide-card-icon-btn.slide-card-delete-btn:hover {
    border-color: #fca5a5;
    color: #b91c1c;
    background: #fee2e2;
}

.slide-card-icon-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.slide-card-icon-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(17, 24, 39, 0.9) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.slide-card-icon-btn[data-tooltip]:hover::after,
.slide-card-icon-btn[data-tooltip]:hover::before {
    opacity: 1;
}

/* ============================================
   Rename Modal
   ============================================ */

.rename-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.rename-modal.active {
    display: flex;
}

.rename-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.rename-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rename-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(22, 22, 22);
    margin: 0 0 20px 0;
}

.rename-modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgb(230, 228, 238);
    border-radius: 10px;
    font-size: 16px;
    color: rgb(22, 22, 22);
    background: rgb(250, 250, 252);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.rename-modal-input:focus {
    border-color: rgb(77, 75, 180);
    background: #fff;
}

.rename-modal-hint {
    font-size: 13px;
    color: rgb(120, 120, 130);
    margin: 10px 0 0 0;
    line-height: 1.4;
}

.rename-modal-error {
    display: none;
    color: rgb(220, 60, 60);
    font-size: 14px;
    margin-top: 8px;
}

.rename-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.rename-modal-cancel,
.rename-modal-save {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.rename-modal-cancel {
    background: rgb(246, 245, 251);
    color: rgb(94, 80, 160);
}

.rename-modal-cancel:hover {
    background: rgb(230, 228, 245);
}

.rename-modal-save {
    background: rgb(77, 75, 180);
    color: #fff;
}

.rename-modal-save:hover {
    background: rgb(94, 80, 160);
}

.rename-modal-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Empty State
   ============================================ */

.slides-gallery-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.slides-gallery-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.4;
}

.slides-gallery-empty-title {
    font-size: 24px;
    font-weight: 500;
    color: rgb(77, 75, 180);
    margin-bottom: 12px;
}

.slides-gallery-empty-text {
    font-size: 16px;
    color: rgb(120, 120, 120);
    margin: 0;
}

/* ============================================
   Loading State
   ============================================ */

.slides-gallery-loading {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.slides-gallery-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgb(230, 228, 245);
    border-top-color: rgb(77, 75, 180);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Auth Gate (Future)
   ============================================ */

.auth-gate {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.auth-gate.active {
    display: flex;
}

.auth-gate-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-gate-title {
    font-size: 24px;
    font-weight: 600;
    color: rgb(22, 22, 22);
    margin-bottom: 16px;
}

.auth-gate-text {
    font-size: 16px;
    color: rgb(120, 120, 120);
    margin-bottom: 32px;
}

.auth-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgb(77, 75, 180);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media screen and (max-width: 991px) {
    .slides-gallery-header-title {
        font-size: 48px;
    }

    .slides-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 767px) {
    .slides-gallery-header {
        padding: 80px 20px 40px;
    }

    .slides-gallery-header-title {
        font-size: 36px;
    }

    .slides-gallery-section {
        padding: 60px 20px 80px;
    }

    .slides-gallery-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .slides-gallery-search {
        max-width: 100%;
    }

    .slides-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 479px) {
    .slides-gallery-header-title {
        font-size: 32px;
    }

    .slide-card-actions {
        flex-direction: column;
    }
}

/* ===== Create Modal ===== */
.create-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.create-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.create-modal-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

.create-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    margin: 0 0 24px 0;
}

.create-modal-field {
    margin-bottom: 20px;
}

.create-modal-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgb(55, 65, 81);
    margin-bottom: 8px;
}

.create-modal-name,
.create-modal-title-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgb(229, 231, 235);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.create-modal-name:focus,
.create-modal-title-input:focus {
    border-color: rgb(77, 75, 180);
    box-shadow: 0 0 0 3px rgba(77, 75, 180, 0.1);
}

.create-modal-filename-preview {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgb(107, 114, 128);
    font-family: monospace;
}

.create-modal-error {
    display: none;
    background: rgb(254, 242, 242);
    color: rgb(185, 28, 28);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.create-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.create-modal-cancel {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgb(243, 244, 246);
    color: rgb(55, 65, 81);
    transition: background 0.2s;
}

.create-modal-cancel:hover {
    background: rgb(229, 231, 235);
}

.create-modal-save {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgb(77, 75, 180);
    color: white;
    transition: background 0.2s;
}

.create-modal-save:hover {
    background: rgb(94, 80, 160);
}

.create-modal-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Pagination ===== */
.pagination-container {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgb(229, 231, 235);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid rgb(229, 231, 235);
    border-radius: 8px;
    background: white;
    color: rgb(55, 65, 81);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: rgb(77, 75, 180);
    color: rgb(77, 75, 180);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    flex-shrink: 0;
}

.pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
}

.pagination-current {
    font-size: 14px;
    font-weight: 600;
    color: rgb(31, 41, 55);
}

.pagination-total {
    font-size: 12px;
    color: rgb(107, 114, 128);
}

/* ===== Empty State Button ===== */
.slides-gallery-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: rgb(77, 75, 180);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.slides-gallery-empty-btn:hover {
    background: rgb(94, 80, 160);
}

@media screen and (max-width: 767px) {
    .pagination {
        gap: 12px;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination-info {
        order: -1;
        width: 100%;
        padding: 0;
        margin-bottom: 8px;
    }

    .slides-gallery-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .slides-gallery-import-btn,
    .slides-gallery-new-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Import Modal
   ============================================ */

.import-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.import-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.import-modal-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    margin: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

.import-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgb(246, 245, 251);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(100, 100, 110);
    transition: all 0.2s ease;
}

.import-modal-close:hover {
    background: rgb(230, 228, 245);
    color: rgb(77, 75, 180);
}

.import-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    margin: 0 0 8px 0;
}

.import-modal-subtitle {
    font-size: 15px;
    color: rgb(107, 114, 128);
    margin: 0 0 24px 0;
}

/* Dropzone */
.import-dropzone {
    border: 2px dashed rgb(200, 195, 230);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    background: rgb(250, 249, 254);
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-dropzone:hover {
    border-color: rgb(77, 75, 180);
    background: rgb(246, 245, 251);
}

.import-dropzone.dragover {
    border-color: rgb(77, 75, 180);
    background: rgb(230, 228, 245);
    transform: scale(1.01);
}

.import-dropzone.has-file {
    border-style: solid;
    border-color: rgb(77, 75, 180);
    background: rgb(246, 245, 251);
}

.import-dropzone-icon {
    margin-bottom: 16px;
    color: rgb(77, 75, 180);
    opacity: 0.7;
}

.import-dropzone.has-file .import-dropzone-icon svg {
    stroke: rgb(34, 197, 94);
}

.import-dropzone-text {
    margin: 0;
}

.import-dropzone-primary {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: rgb(31, 41, 55);
    margin-bottom: 8px;
}

.import-dropzone-secondary {
    display: block;
    font-size: 14px;
    color: rgb(107, 114, 128);
}

.import-browse-btn {
    background: none;
    border: none;
    color: rgb(77, 75, 180);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
}

.import-browse-btn:hover {
    color: rgb(94, 80, 160);
}

.import-dropzone-formats {
    margin: 16px 0 0 0;
    font-size: 12px;
    color: rgb(156, 163, 175);
}

.import-dropzone-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.import-dropzone-file-icon {
    color: rgb(77, 75, 180);
}

.import-dropzone-file-name {
    font-size: 15px;
    font-weight: 500;
    color: rgb(31, 41, 55);
}

.import-dropzone-file-change {
    font-size: 13px;
    color: rgb(107, 114, 128);
    text-decoration: underline;
    cursor: pointer;
}

/* Import Modal Field */
.import-modal-field {
    margin-top: 20px;
}

.import-modal-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgb(55, 65, 81);
    margin-bottom: 8px;
}

.import-modal-name {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid rgb(229, 231, 235);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.import-modal-name:focus {
    border-color: rgb(77, 75, 180);
    box-shadow: 0 0 0 3px rgba(77, 75, 180, 0.1);
}

.import-modal-error {
    display: none;
    background: rgb(254, 242, 242);
    color: rgb(185, 28, 28);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 16px;
}

.import-modal-error.visible {
    display: block;
}

/* Loading State */
.import-modal-loading {
    text-align: center;
    padding: 40px 20px;
}

.import-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgb(230, 228, 245);
    border-top-color: rgb(77, 75, 180);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.import-loading-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    margin: 0 0 8px 0;
}

.import-loading-status {
    font-size: 15px;
    color: rgb(107, 114, 128);
    margin: 0 0 24px 0;
}

.import-loading-progress {
    width: 100%;
    height: 6px;
    background: rgb(229, 231, 235);
    border-radius: 3px;
    overflow: hidden;
}

.import-loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgb(77, 75, 180) 0%, rgb(139, 92, 246) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Success State */
.import-modal-success {
    text-align: center;
    padding: 40px 20px;
}

.import-success-icon {
    color: rgb(34, 197, 94);
    margin-bottom: 20px;
}

.import-success-title {
    font-size: 24px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    margin: 0 0 8px 0;
}

.import-success-text {
    font-size: 15px;
    color: rgb(107, 114, 128);
    margin: 0 0 28px 0;
}

.import-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.import-success-btn-primary,
.import-success-btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.import-success-btn-primary {
    background: rgb(77, 75, 180);
    color: white;
}

.import-success-btn-primary:hover {
    background: rgb(94, 80, 160);
}

.import-success-btn-secondary {
    background: rgb(243, 244, 246);
    color: rgb(55, 65, 81);
}

.import-success-btn-secondary:hover {
    background: rgb(229, 231, 235);
}

/* ============================================
   Import Style Selection
   ============================================ */

.import-style-selection {
    margin-top: 24px;
}

.import-style-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.import-style-option {
    cursor: pointer;
}

.import-style-option input[type="radio"] {
    display: none;
}

.import-style-card {
    border: 2px solid rgb(229, 231, 235);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    background: white;
}

.import-style-option:hover .import-style-card {
    border-color: rgb(200, 195, 230);
    background: rgb(250, 249, 254);
}

.import-style-option input[type="radio"]:checked + .import-style-card {
    border-color: rgb(77, 75, 180);
    background: rgb(246, 245, 251);
    box-shadow: 0 0 0 3px rgba(77, 75, 180, 0.15);
}

.import-style-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

/* Wenti Labs Style Preview */
.import-style-preview-wenti {
    background: linear-gradient(135deg, #ffffff 0%, #e6e6fa 50%, #c4b5fd 100%);
}

.import-style-preview-wenti .preview-header {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: linear-gradient(90deg, #5e50a0, #7866cc);
    border-radius: 2px;
}

.import-style-preview-wenti .preview-content {
    position: absolute;
    left: 12px;
    top: 20px;
    right: 12px;
}

.import-style-preview-wenti .preview-title {
    height: 6px;
    width: 60%;
    background: #5e50a0;
    border-radius: 3px;
    margin-bottom: 8px;
}

.import-style-preview-wenti .preview-bullet {
    height: 4px;
    width: 80%;
    background: rgba(94, 80, 160, 0.4);
    border-radius: 2px;
    margin-bottom: 4px;
}

/* Original Style Preview */
.import-style-preview-original {
    background: #f5f5f5;
}

.import-style-preview-original .preview-header-orig {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: #666;
    border-radius: 2px;
}

.import-style-preview-original .preview-content {
    position: absolute;
    left: 12px;
    top: 20px;
    right: 12px;
}

.import-style-preview-original .preview-title-orig {
    height: 6px;
    width: 50%;
    background: #333;
    border-radius: 3px;
    margin-bottom: 8px;
}

.import-style-preview-original .preview-bullet-orig {
    height: 4px;
    width: 70%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    margin-bottom: 4px;
}

.import-style-info {
    text-align: center;
}

.import-style-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    margin-bottom: 4px;
}

.import-style-desc {
    display: block;
    font-size: 11px;
    color: rgb(107, 114, 128);
    line-height: 1.3;
}

@media screen and (max-width: 479px) {
    .import-style-options {
        grid-template-columns: 1fr;
    }
}
