/* Video Study Notes — Main Stylesheet */

:root {
    --vstn-primary: #4f46e5;
    --vstn-primary-hover: #4338ca;
    --vstn-bg: #ffffff;
    --vstn-sidebar-bg: #f8fafc;
    --vstn-border: #e2e8f0;
    --vstn-text: #1e293b;
    --vstn-text-muted: #64748b;
    --vstn-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --vstn-radius: 12px;
}

.vstn-inactive-fallback {
    padding: 20px;
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 20px 0;
}

.vstn-app-container,
.vstn-app-container * {
    box-sizing: border-box;
}

.vstn-app-container,
.vstn-app-container * {
    box-sizing: border-box;
}

.vstn-app-container {
    display: flex;

    background: var(--vstn-bg);

    border: 1px solid var(--vstn-border);
    border-radius: var(--vstn-radius);
    overflow: hidden;
    margin: 80px 0 !important; /* Offset for fixed headers */
    box-shadow: var(--vstn-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

/* Focus Mode (Immersive Overlay) */
.vstn-app-container.vstn-focus-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.vstn-focus-mode-content {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    max-height: 900px;
    /* Force a professional ratio */
    margin: 0 auto;
    background: var(--vstn-bg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--vstn-border);
}

.vstn-focus-mode .vstn-focus-mode-content {
    display: flex !important;
    flex-direction: row !important;
    /* Always side-by-side in focus mode */
}

/* Ensure internals behave in Focus Mode */
.vstn-focus-mode .vstn-video-wrapper {
    height: 100% !important;
    aspect-ratio: auto !important;
    /* Disable ratio in focus mode to allow sidebar room */
    flex: 3 !important;
    background: #000;
}


.vstn-focus-mode .vstn-notes-sidebar {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1 !important;
    min-width: 350px !important;
    /* Slightly smaller min-width to prevent overflow */
    border-left: 1px solid var(--vstn-border);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    background: var(--vstn-sidebar-bg);
    /* Ensure background is visible */
}



/* Hide original content when in focus mode */
.vstn-focus-mode>*:not(.vstn-focus-mode-content) {
    display: none !important;
}

/* Fix sidebar internals in focus mode */
.vstn-focus-mode .vstn-notes-list {
    flex: 1 !important;
    min-height: 0;
    /* Important for flex-shrink and scroll */
    overflow-y: auto;
    max-height: none !important;
}

.vstn-focus-mode .vstn-note-input-area {
    margin-top: auto;
    /* Push to bottom */
    flex-shrink: 0;
}


/* Dark Theme */
.vstn-dark-theme {
    --vstn-bg: #0f172a;
    --vstn-sidebar-bg: #1e293b;
    --vstn-border: #334155;
    --vstn-text: #f1f5f9;
    --vstn-text-muted: #94a3b8;
}

/* Layouts */
.vstn-layout-horizontal {
    flex-direction: row;
}

.vstn-layout-vertical {
    flex-direction: column;
}

.vstn-layout-vertical:not(.vstn-focus-mode) .vstn-video-wrapper,
.vstn-layout-vertical:not(.vstn-focus-mode) .vstn-notes-sidebar {
    width: 100%;
    flex: none;
}



/* Video Wrapper */
.vstn-video-wrapper {
    flex: 2;
    background: #000;
    position: relative;
    aspect-ratio: 16/9;
}

.vstn-player {
    width: 100%;
    height: 100%;
}

/* Notes Sidebar */
.vstn-notes-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--vstn-sidebar-bg);
    border-left: 1px solid var(--vstn-border);
    min-width: 300px;
    max-width: 450px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    max-height: 100%;
}

.vstn-layout-horizontal .vstn-notes-sidebar {
    height: auto;
    align-self: stretch;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.vstn-layout-horizontal .vstn-notes-list {
    max-height: 300px;
    /* Constrain height to keep input in view */
}





.vstn-layout-vertical .vstn-notes-sidebar {
    border-left: none;
    border-top: 1px solid var(--vstn-border);
    max-width: 100%;
}

.vstn-layout-vertical .vstn-notes-list {
    max-height: 200px;
    /* Reduced further to ensure input stays on screen */
}




.vstn-sidebar-collapsed {
    min-width: 40px;
    max-width: 40px;
}

.vstn-sidebar-collapsed>*:not(.vstn-sidebar-header) {
    display: none;
}

.vstn-sidebar-collapsed .vstn-sidebar-header h3 {
    display: none;
}

/* Header */
.vstn-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--vstn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vstn-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--vstn-text);
}

.vstn-btn-collapse {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vstn-text-muted);
    padding: 5px;
    border-radius: 4px;
}

.vstn-btn-collapse,
.vstn-btn-focus {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--vstn-text-muted);
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.vstn-btn-collapse:hover,
.vstn-btn-focus:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--vstn-primary);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Focus Mode Button State (Static) */
.vstn-focus-mode .vstn-btn-focus {
    color: var(--vstn-primary) !important;
    background: rgba(79, 70, 229, 0.1) !important;
    border-color: rgba(79, 70, 229, 0.3) !important;
}

.vstn-focus-mode .vstn-btn-focus:hover {
    background: rgba(79, 70, 229, 0.15) !important;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

@keyframes ysnGlowPulse {
    /* Animation removed as requested */
}



/* Notes List */
.vstn-notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--vstn-primary) transparent;
    position: relative;
}

.vstn-notes-list::-webkit-scrollbar {
    width: 6px;
}

.vstn-notes-list::-webkit-scrollbar-thumb {
    background-color: var(--vstn-primary);
    border-radius: 10px;
}




.vstn-empty-notes {
    text-align: center;
    padding: 40px 20px;
    color: var(--vstn-text-muted);
}

.vstn-empty-notes i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Note Item */
.vstn-note-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--vstn-bg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: ysnSlideIn 0.3s ease-out;
}

@keyframes ysnSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.vstn-note-item:hover {
    border-color: var(--vstn-primary);
    transform: translateX(4px);
}

.vstn-note-item.vstn-active-note {
    border-color: var(--vstn-primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
}

.vstn-note-time {
    background: var(--vstn-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    height: fit-content;
}

.vstn-note-content {
    flex: 1;
}

.vstn-note-content p {
    margin: 0;
    font-size: 13px;
    color: var(--vstn-text);
}

.vstn-note-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.vstn-note-item:hover .vstn-note-actions {
    opacity: 1;
}

.vstn-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vstn-text-muted);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vstn-btn-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Input Area */
.vstn-note-input-area {
    padding: 20px;
    border-top: 1px solid var(--vstn-border);
    background: var(--vstn-bg);
}

.vstn-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.vstn-current-time {
    font-weight: 700;
    color: var(--vstn-primary);
    font-size: 13px;
    min-width: 45px;
}

.vstn-note-input {
    flex: 1;
    border: 1px solid var(--vstn-border);
    background: var(--vstn-sidebar-bg);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--vstn-text);
    font-size: 13px;
}

.vstn-note-input:focus {
    outline: none;
    border-color: var(--vstn-primary);
    background: var(--vstn-bg);
}

.vstn-btn-add-note {
    background: var(--vstn-primary);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vstn-btn-add-note:hover {
    background: var(--vstn-primary-hover);
}

.vstn-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed var(--vstn-border);
    margin-top: 10px;
}

.vstn-btn-clear-notes,
.vstn-btn-export-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--vstn-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.vstn-btn-clear-notes:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.1);
}

.vstn-btn-export-toggle:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--vstn-primary);
    border-color: rgba(79, 70, 229, 0.1);
}

.vstn-export-container {
    position: relative;
}

.vstn-export-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--vstn-border);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
    z-index: 10;
    margin-bottom: 8px;
    animation: ysnFadeUp 0.2s ease-out;
}

@keyframes ysnFadeUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.vstn-export-menu button {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--vstn-text-muted);
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
}

.vstn-export-menu button:hover {
    background: var(--vstn-primary);
    color: #fff;
}



/* Gallery Styles */
.vstn-gallery-container {
    margin-top: 80px !important; /* Offset for fixed headers */
}

.vstn-gallery-grid {
    margin-top: 40px;
}

.vstn-gallery-grid h3 {
    font-size: 20px;
    margin: 0;
}

.vstn-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vstn-border);
}

.vstn-layout-switcher {
    display: flex;
    gap: 10px;
}

.vstn-layout-btn {
    background: none;
    border: 1px solid var(--vstn-border);
    color: var(--vstn-text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.vstn-layout-btn:hover,
.vstn-layout-btn.active {
    background: var(--vstn-primary);
    color: #fff;
    border-color: var(--vstn-primary);
}


.vstn-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vstn-gallery-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    /* Grey border */
    border-radius: 16px;
    /* Soft rounded corners */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important;
    /* No shadow as requested */
    display: flex;
    flex-direction: column;
}

.vstn-gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--vstn-primary);
}

.vstn-gallery-item.vstn-active {
    border: 2px solid rgba(79, 70, 229, 0.4) !important;
    /* Lighter purple border */
    background: rgba(79, 70, 229, 0.02);
    transform: translateY(-3px);
}


.vstn-gallery-item.vstn-done {
    opacity: 0.6;
}

.vstn-gallery-item.vstn-done .vstn-thumb img {
    filter: grayscale(100%);
}

.vstn-gallery-item.vstn-done h4 {
    color: var(--vstn-text-muted);
}

.vstn-done-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vstn-done .vstn-done-badge {
    display: flex;
}

/* Professional Done Indicator for Row Layout */
.vstn-layout-row .vstn-gallery-item.vstn-done h4 {
    text-decoration: none;
    /* Cleaner look */
    opacity: 0.7;
}

.vstn-layout-row .vstn-gallery-item.vstn-done .vstn-title-row::after {
    content: "\f147";
    /* dashicons-yes */
    font-family: dashicons;
    color: #10b981;
    font-size: 18px;
    margin-left: 10px;
}



.vstn-thumb {
    position: relative;
    aspect-ratio: 16/9;
}

.vstn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vstn-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.vstn-gallery-item:hover .vstn-play-overlay {
    opacity: 1;
}

.vstn-play-overlay i {
    font-size: 48px;
    color: #fff;
    width: 48px;
    height: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.vstn-info {
    padding: 15px;
}

.vstn-info h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    flex: 1;
}

.vstn-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.vstn-item-icon {
    font-size: 18px;
    color: var(--vstn-text-muted);
    margin-top: 2px; /* Align with first line of text */
}

.vstn-active .vstn-item-icon {
    color: var(--vstn-primary);
}

.vstn-item-desc {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--vstn-text-muted);
}

.vstn-item-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--transition-fast);
}

.vstn-layout-row .vstn-item-actions {
    opacity: 1 !important;
}

.vstn-gallery-item:hover .vstn-item-actions {
    opacity: 1;
}


.vstn-btn-done,
.vstn-btn-undone {
    background: none;
    border: 1px solid var(--vstn-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--vstn-text-muted);
}

.vstn-btn-done:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.vstn-btn-undone:hover {
    background: var(--vstn-primary);
    color: #fff;
    border-color: var(--vstn-primary);
}

.vstn-done .vstn-btn-done {
    display: none;
}

.vstn-gallery-item:not(.vstn-done) .vstn-btn-undone {
    display: none;
}


/* List Layout (2 Columns Grid with Thumbs on Left) */
.vstn-grid-items.vstn-layout-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.vstn-grid-items.vstn-layout-list .vstn-gallery-item {
    display: flex !important;
    flex-direction: row !important;
    /* Force row layout for list view */
    align-items: flex-start;
    /* Align to top for longer descriptions */
    gap: 15px;
    padding: 12px;
    box-shadow: none;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--vstn-radius);
    transition: all 0.3s ease;
}


.vstn-grid-items.vstn-layout-list .vstn-gallery-item:not(.vstn-active) {
    transform: scale(0.98);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.5);
}

.vstn-grid-items.vstn-layout-list .vstn-gallery-item.vstn-active {
    border-color: var(--vstn-primary);
    background: rgba(79, 70, 229, 0.05);
    transform: scale(1);
}

.vstn-grid-items.vstn-layout-list .vstn-thumb {
    width: 140px;
    /* Balanced size for 2-column list */
    min-width: 140px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}

.vstn-grid-items.vstn-layout-list .vstn-info {
    padding: 5px 0;
    flex: 1;
}

.vstn-grid-items.vstn-layout-list .vstn-item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Added for standard compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
}



/* Row Layout (2 Columns Text-Focused Grid) */
.vstn-grid-items.vstn-layout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.vstn-grid-items.vstn-layout-row .vstn-gallery-item {
    display: flex !important;
    flex-direction: row !important;
    /* Force horizontal layout */
    align-items: center;
    justify-content: flex-start;
    /* Align everything to the left */
    padding: 12px 0;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--vstn-border) !important;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    gap: 0;
}


.vstn-grid-items.vstn-layout-row .vstn-gallery-item:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}


.vstn-grid-items.vstn-layout-row .vstn-active {
    background: transparent !important;
}

.vstn-grid-items.vstn-layout-row .vstn-active h4 {
    color: var(--primary);
    font-weight: 700;
}

.vstn-grid-items.vstn-layout-row .vstn-active .vstn-item-icon {
    color: var(--primary);
}

.vstn-grid-items.vstn-layout-row .vstn-item-icon {
    font-size: 20px;
    margin-right: 12px;
}


.vstn-grid-items.vstn-layout-row .vstn-thumb {
    display: none !important;
    /* Remove icon entirely as requested */
}


.vstn-grid-items.vstn-layout-row .vstn-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: row;
    /* Icon/Text left, Actions right */
    justify-content: space-between;
    align-items: center;
}

.vstn-grid-items.vstn-layout-row .vstn-title-row {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}


.vstn-grid-items.vstn-layout-row .vstn-item-desc {
    display: none;
    /* Keep it compact */
}

/* Cleaned up Row specific states */
.vstn-grid-items.vstn-layout-row .vstn-done {
    opacity: 0.7;
}

.vstn-grid-items.vstn-layout-row .vstn-done h4 {
    color: var(--text-muted);
}



/* Pagination Styling */
.vstn-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
}

.vstn-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--vstn-border);
    color: var(--vstn-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vstn-page-num:hover {
    border-color: var(--vstn-primary);
    color: var(--vstn-primary);
    background: rgba(79, 70, 229, 0.05);
}

.vstn-page-num.active {
    background: var(--vstn-primary);
    color: #fff;
    border-color: var(--vstn-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
    .vstn-grid-items.vstn-layout-row {
        grid-template-columns: 1fr;
    }
}



/* Hide thumbnails for text-only list if needed, but the user said "text list" which usually means focusing on text. I'll make them smaller. */


/* Responsive */
@media (max-width: 900px) {
    .vstn-app-container {
        flex-direction: column;
    }

    .vstn-notes-sidebar {
        max-width: 100%;
        border-left: none;
        border-top: 1px solid var(--vstn-border);
    }
}

/* Login Message Area */
.vstn-note-input-area-login {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.vstn-login-msg {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vstn-login-msg a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.vstn-login-msg a:hover {
    text-decoration: underline;
}

/* General Modal Overlay */
.vstn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: ysnFadeIn 0.3s ease-out;
}

@keyframes ysnFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.vstn-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: ysnSlideUp 0.3s ease-out;
}

@keyframes ysnSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Auth Modal Styles */
.vstn-auth-container {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    position: relative;
    max-width: 90%;
    margin: 20px;
}

.vstn-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.vstn-auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

.vstn-auth-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.vstn-auth-container .vstn-form-group {
    margin-bottom: 20px;
}

.vstn-auth-container label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 8px;
    text-align: left;
}

.vstn-auth-container input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.vstn-auth-container input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.vstn-auth-btn {
    width: 100% !important;
    padding: 14px !important;
    background: #4f46e5 !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.vstn-auth-btn:hover {
    background: #4338ca !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.vstn-auth-btn .spinner {
    float: none;
    margin: 0;
    display: none;
}

.vstn-auth-btn.vstn-loading .spinner {
    display: block !important;
    visibility: visible !important;
}

.vstn-auth-btn.vstn-loading .vstn-btn-text {
    opacity: 0.7;
}

.vstn-auth-msg {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.vstn-auth-msg.error {
    color: #ef4444;
}

.vstn-auth-msg.success {
    color: #10b981;
}

.vstn-auth-switch {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.vstn-auth-switch a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.vstn-auth-switch a:hover {
    text-decoration: underline;
}

.vstn-auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.vstn-auth-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}