/**
 * AKMART Smooth Animations & Error Tracking Styles
 * Enhances user experience with smooth transitions
 */

/* ============================================
   SMOOTH SCROLLING & PERFORMANCE
============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea, .btn, .product-card, .category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK MODE ENHANCEMENTS
============================================ */
body[data-theme="dark"]:not(.homepage-only) {
    background: #0a1628 !important;
    color: #f0f4f8 !important;
}

/* COMPLETELY DISABLE DARK MODE ON HOMEPAGE */
body.homepage-only[data-theme="dark"],
body.homepage-only[data-theme="dark"] *,
body.homepage-only[data-theme="dark"] section,
body.homepage-only[data-theme="dark"] div,
body.homepage-only[data-theme="dark"] p,
body.homepage-only[data-theme="dark"] h1,
body.homepage-only[data-theme="dark"] h2,
body.homepage-only[data-theme="dark"] h3,
body.homepage-only[data-theme="dark"] h4,
body.homepage-only[data-theme="dark"] h5,
body.homepage-only[data-theme="dark"] h6 {
    background: white !important;
    color: #1a1a1a !important;
    background-color: white !important;
}

/* Dark mode for all sections (except homepage) */
body[data-theme="dark"]:not(.homepage-only) *:not(.btn-primary):not(.price):not(.badge):not(.salmon-pink):not(img) {
    background-color: inherit !important;
}

body[data-theme="dark"]:not(.homepage-only) section:not(.home-hero):not(.category-showcase) {
    background: #0a1628 !important;
}

/* Dark mode card backgrounds */
body[data-theme="dark"]:not(.homepage-only) .product-card,
body[data-theme="dark"]:not(.homepage-only) .category-card,
body[data-theme="dark"]:not(.homepage-only) .showcase,
body[data-theme="dark"]:not(.homepage-only) .sidebar,
body[data-theme="dark"]:not(.homepage-only) .header-main,
body[data-theme="dark"]:not(.homepage-only) .footer,
body[data-theme="dark"]:not(.homepage-only) .filters-sidebar-wrapper,
body[data-theme="dark"]:not(.homepage-only) .product-filters,
body[data-theme="dark"]:not(.homepage-only) .filter-group,
body[data-theme="dark"]:not(.homepage-only) .filter-category,
body[data-theme="dark"]:not(.homepage-only) .sorting-wrapper,
body[data-theme="dark"]:not(.homepage-only) .products-main-content,
body[data-theme="dark"]:not(.homepage-only) .card,
body[data-theme="dark"]:not(.homepage-only) .panel,
body[data-theme="dark"]:not(.homepage-only) .box,
body[data-theme="dark"]:not(.homepage-only) form,
body[data-theme="dark"]:not(.homepage-only) .form-group {
    background: #152238 !important;
    border-color: rgba(148, 163, 184, 0.7) !important;
    border: 2px solid rgba(148, 163, 184, 0.7) !important;
}

/* Dark mode text contrast */
body[data-theme="dark"]:not(.homepage-only) h1,
body[data-theme="dark"]:not(.homepage-only) h2,
body[data-theme="dark"]:not(.homepage-only) h3,
body[data-theme="dark"]:not(.homepage-only) h4,
body[data-theme="dark"]:not(.homepage-only) h5,
body[data-theme="dark"]:not(.homepage-only) h6,
body[data-theme="dark"]:not(.homepage-only) .product-name,
body[data-theme="dark"]:not(.homepage-only) .category-name,
body[data-theme="dark"]:not(.homepage-only) strong,
body[data-theme="dark"]:not(.homepage-only) .menu-title,
body[data-theme="dark"]:not(.homepage-only) .menu-category,
body[data-theme="dark"]:not(.homepage-only) .dropdown-panel-list,
body[data-theme="dark"]:not(.homepage-only) .submenu-title,
body[data-theme="dark"]:not(.homepage-only) .filter-title,
body[data-theme="dark"]:not(.homepage-only) .filter-label,
body[data-theme="dark"]:not(.homepage-only) .checkbox-label,
body[data-theme="dark"]:not(.homepage-only) label,
body[data-theme="dark"]:not(.homepage-only) .title,
body[data-theme="dark"]:not(.homepage-only) .heading {
    color: #f0f4f8 !important;
}

body[data-theme="dark"]:not(.homepage-only) p,
body[data-theme="dark"]:not(.homepage-only) span:not(.price):not([class*="salmon"]):not([class*="primary"]),
body[data-theme="dark"]:not(.homepage-only) .product-short-desc,
body[data-theme="dark"]:not(.homepage-only) .showcase-title,
body[data-theme="dark"]:not(.homepage-only) a:not(.btn):not([style*="color"]),
body[data-theme="dark"]:not(.homepage-only) .panel-description,
body[data-theme="dark"]:not(.homepage-only) .dropdown-panel-cta,
body[data-theme="dark"]:not(.homepage-only) .panel-headline p,
body[data-theme="dark"]:not(.homepage-only) .description,
body[data-theme="dark"]:not(.homepage-only) .text,
body[data-theme="dark"]:not(.homepage-only) .info {
    color: #cbd5e1 !important;
}

body[data-theme="dark"]:not(.homepage-only) a:not(.btn):not([style*="color"]) {
    color: #94a3b8 !important;
}

body[data-theme="dark"]:not(.homepage-only) a:not(.btn):not([style*="color"]):hover {
    color: #f0f4f8 !important;
}

/* Dark mode inputs and forms */
body[data-theme="dark"]:not(.homepage-only) input,
body[data-theme="dark"]:not(.homepage-only) select,
body[data-theme="dark"]:not(.homepage-only) textarea {
    background: #0a1628 !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #f0f4f8 !important;
}

body[data-theme="dark"]:not(.homepage-only) input::placeholder {
    color: #64748b !important;
}

body[data-theme="dark"]:not(.homepage-only) .filter-checkbox,
body[data-theme="dark"]:not(.homepage-only) input[type="checkbox"],
body[data-theme="dark"]:not(.homepage-only) input[type="radio"] {
    accent-color: var(--salmon-pink) !important;
    background: #0a1628 !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Dark mode dropdown and modals */
body[data-theme="dark"]:not(.homepage-only) .dropdown-panel,
body[data-theme="dark"]:not(.homepage-only) .modal-content,
body[data-theme="dark"]:not(.homepage-only) .popup,
body[data-theme="dark"]:not(.homepage-only) .modal {
    background: #152238 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Keep accent colors vibrant in dark mode */
body[data-theme="dark"]:not(.homepage-only) .btn-primary,
body[data-theme="dark"]:not(.homepage-only) .price,
body[data-theme="dark"]:not(.homepage-only) .badge,
body[data-theme="dark"]:not(.homepage-only) .tag {
    opacity: 1 !important;
}

/* Dark mode navigation */
body[data-theme="dark"]:not(.homepage-only) .desktop-navigation-menu,
body[data-theme="dark"]:not(.homepage-only) .mobile-navigation-menu {
    background: #152238 !important;
}

body[data-theme="dark"]:not(.homepage-only) .menu-title,
body[data-theme="dark"]:not(.homepage-only) .submenu-title {
    color: #f0f4f8 !important;
}

body[data-theme="dark"]:not(.homepage-only) .menu-category:hover {
    background: rgba(255, 138, 173, 0.1) !important;
}

/* Dark mode buttons (except primary) */
body[data-theme="dark"]:not(.homepage-only) .btn-filter,
body[data-theme="dark"]:not(.homepage-only) .clear-filters-btn,
body[data-theme="dark"]:not(.homepage-only) button[type="button"]:not(.btn-primary),
body[data-theme="dark"]:not(.homepage-only) button[type="submit"]:not(.btn-primary) {
    background: #0a1628 !important;
    color: #f0f4f8 !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

body[data-theme="dark"]:not(.homepage-only) .btn-filter:hover,
body[data-theme="dark"]:not(.homepage-only) .clear-filters-btn:hover,
body[data-theme="dark"]:not(.homepage-only) button[type="button"]:not(.btn-primary):hover {
    background: #152238 !important;
    border-color: rgba(148, 163, 184, 0.5) !important;
}

/* Dark mode table styles */
body[data-theme="dark"]:not(.homepage-only) table,
body[data-theme="dark"]:not(.homepage-only) thead,
body[data-theme="dark"]:not(.homepage-only) tbody,
body[data-theme="dark"]:not(.homepage-only) tr,
body[data-theme="dark"]:not(.homepage-only) td,
body[data-theme="dark"]:not(.homepage-only) th {
    background: #152238 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #f0f4f8 !important;
}

body[data-theme="dark"]:not(.homepage-only) thead {
    background: #0a1628 !important;
}

/* Dark mode list styles */
body[data-theme="dark"]:not(.homepage-only) ul,
body[data-theme="dark"]:not(.homepage-only) ol,
body[data-theme="dark"]:not(.homepage-only) li {
    color: #cbd5e1 !important;
}

/* Dark mode code styles */
body[data-theme="dark"]:not(.homepage-only) code,
body[data-theme="dark"]:not(.homepage-only) pre {
    background: #0a1628 !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* ============================================
   LOADING ANIMATIONS
============================================ */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 138, 173, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Page transition loading */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform-origin: left;
    animation: loading-bar 2s ease-in-out infinite;
    z-index: 99999;
}

@keyframes loading-bar {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.5); }
    100% { transform: scaleX(1); }
}

/* ============================================
   ERROR NOTIFICATION STYLES
============================================ */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.error-notification-content {
    background: #fff;
    border-left: 4px solid #f56565;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s;
}

.error-notification-content i {
    color: #f56565;
    font-size: 20px;
}

.error-notification-content span {
    flex: 1;
    color: #2d3748;
    font-size: 14px;
}

.close-notification {
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-notification:hover {
    color: #2d3748;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.success-notification-content {
    background: #fff;
    border-left: 4px solid #48bb78;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-notification-content i {
    color: #48bb78;
    font-size: 20px;
}

/* ============================================
   BUG REPORT BUTTON
============================================ */
.bug-report-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bug-report-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: #2c2c2c;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.bug-report-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.bug-report-btn i {
    font-size: 16px;
}

/* ============================================
   BUG REPORT MODAL
============================================ */
.bug-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.bug-report-modal.show {
    opacity: 1;
}

.bug-report-content {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bug-report-modal.show .bug-report-content {
    transform: scale(1);
}

.bug-report-header {
    padding: 24px;
    border-bottom: 2px solid #f7fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bug-report-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bug-report-header i {
    color: #1a1a1a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #2d3748;
    transform: rotate(90deg);
}

.bug-report-form {
    padding: 24px;
}

.bug-report-form .form-group {
    margin-bottom: 20px;
}

.bug-report-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.bug-report-form textarea,
.bug-report-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.bug-report-form textarea:focus,
.bug-report-form input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.bug-report-form input[type="checkbox"] {
    margin-right: 8px;
}

.bug-report-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.bug-report-actions .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bug-report-actions .btn-secondary:hover {
    background: #cbd5e0;
}

.bug-report-actions .btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bug-report-actions .btn-primary:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SMOOTH IMAGE LOADING
============================================ */
img {
    opacity: 1 !important;
    transition: opacity 0.3s ease-in;
}

/* Lazy loading placeholder */
img[data-src] {
    filter: blur(10px);
    transition: filter 0.3s;
}

img[data-src].loaded {
    filter: blur(0);
}

/* Dark mode images - hero tiles and category showcase */
body[data-theme="dark"]:not(.homepage-only) .hero-tile__image,
body[data-theme="dark"]:not(.homepage-only) .category-showcase__image,
body[data-theme="dark"]:not(.homepage-only) .home-hero__feature-image,
body[data-theme="dark"]:not(.homepage-only) .product-image {
    opacity: 1 !important;
    filter: none !important;
}

/* Ensure all images in dark mode are visible */
body[data-theme="dark"]:not(.homepage-only) img {
    opacity: 1 !important;
    filter: none !important;
    background: transparent !important;
}

/* ============================================
   SKELETON LOADERS
============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin: 10px 0;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin: 10px 0;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* ============================================
   SMOOTH HOVER EFFECTS
============================================ */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Card hover effect */
.product-card,
.category-card {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Button hover effect */
.btn,
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.btn::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   PERFORMANCE INDICATORS
============================================ */
.performance-indicator {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    z-index: 9998;
    display: none;
}

.performance-indicator.show {
    display: block;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
    /* Hide bug report button on mobile - will be in menu instead */
    .bug-report-btn {
        display: none !important;
    }
    
    .error-notification,
    .success-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .bug-report-content {
        margin: 20px;
    }
    
    /* Ensure mobile bottom nav only has 3 buttons */
    .mobile-bottom-navigation {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   FADE IN ANIMATIONS
============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for lists */
.fade-in-stagger > * {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

.fade-in-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.fade-in-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.fade-in-stagger > *:nth-child(6) { animation-delay: 0.6s; }
.fade-in-stagger > *:nth-child(7) { animation-delay: 0.7s; }
.fade-in-stagger > *:nth-child(8) { animation-delay: 0.8s; }

/* ============================================
   MODERN CONFIRM DIALOG
============================================ */
.modern-confirm-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modern-confirm-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modern-confirm-dialog {
    width: min(100%, 360px);
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.modern-confirm-overlay.is-visible .modern-confirm-dialog {
    transform: translateY(0);
}

.modern-confirm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 100, 130, 0.12);
    color: #f06482;
    font-size: 24px;
    margin-bottom: 16px;
}

.modern-confirm-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.modern-confirm-message {
    margin: 14px 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.modern-confirm-message.has-html {
    margin-bottom: 18px;
}

.modern-confirm-extra {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.modern-confirm-extra[hidden] {
    display: none !important;
}

.modern-confirm-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-confirm-preview img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.modern-confirm-preview .preview-details {
    flex: 1;
    min-width: 0;
}

.modern-confirm-preview .preview-name {
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-confirm-preview .preview-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.modern-confirm-preview .preview-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: #1f2937;
    font-size: 12px;
    font-weight: 500;
}

.modern-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-confirm-actions button {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    min-width: 0;
}

.modern-confirm-actions button:focus-visible {
    outline: 3px solid rgba(240, 100, 130, 0.35);
    outline-offset: 2px;
}

.modern-confirm-actions button:active {
    transform: scale(0.96);
}

.confirm-secondary {
    background: #f8fafc;
    color: #475569;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: none;
}

.confirm-primary {
    background: var(--salmon-pink, #f06482);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(240, 100, 130, 0.25);
}

.confirm-secondary:hover {
    background: #eef2f8;
    border-color: rgba(148, 163, 184, 0.45);
}

.confirm-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(240, 100, 130, 0.3);
}

.modern-confirm-overlay[data-variant="danger"] .modern-confirm-icon {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.modern-confirm-overlay[data-variant="danger"] .confirm-primary {
    background: #dc2626;
    box-shadow: 0 20px 38px rgba(220, 38, 38, 0.28);
}

.modern-confirm-overlay[data-variant="success"] .modern-confirm-icon {
    background: rgba(5, 150, 105, 0.15);
    color: #047857;
}

.modern-confirm-overlay[data-variant="success"] .confirm-primary {
    background: #10b981;
    box-shadow: 0 20px 38px rgba(16, 185, 129, 0.28);
}

body[data-theme="dark"] .modern-confirm-overlay {
    background: rgba(2, 6, 23, 0.65);
}

body[data-theme="dark"] .modern-confirm-dialog {
    background: #111c2d;
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.75);
}

body[data-theme="dark"] .modern-confirm-title {
    color: #e2e8f0;
}

body[data-theme="dark"] .modern-confirm-message {
    color: #cbd5f5;
}

body[data-theme="dark"] .modern-confirm-extra {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.24);
}

body[data-theme="dark"] .modern-confirm-preview img {
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.6);
}

body[data-theme="dark"] .modern-confirm-preview .preview-name {
    color: #e2e8f0;
}

body[data-theme="dark"] .modern-confirm-preview .preview-meta {
    color: #cbd5f5;
}

body[data-theme="dark"] .modern-confirm-preview .preview-meta span {
    background: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

body[data-theme="dark"] .confirm-secondary {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

body[data-theme="dark"] .confirm-secondary:hover {
    background: rgba(148, 163, 184, 0.24);
}

@media (max-width: 520px) {
    .modern-confirm-dialog {
        width: 100%;
        padding: 24px 20px 20px;
    }

    .modern-confirm-preview {
        align-items: flex-start;
    }

    .modern-confirm-preview img {
        width: 52px;
        height: 52px;
    }

    .modern-confirm-preview .preview-meta {
        flex-direction: column;
        gap: 2px;
    }

    .modern-confirm-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .modern-confirm-actions button {
        width: 100%;
        justify-content: center;
    }
}
