/* Reusable UI Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(var(--color-primary-rgb), 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(var(--color-primary-rgb), 0.35);
    transform: translateY(-1.5px);
}

.btn-secondary {
    background-color: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-border);
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--color-success);
    color: #ffffff;
}

.btn-success:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-text {
    padding: 0.5rem;
    color: var(--color-text-muted);
}

.btn-text:hover {
    color: var(--color-text);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Cards */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Tool Card */
.tool-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(135deg,
            var(--color-surface) 0%,
            var(--color-surface-elevated) 100%);

    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    cursor: pointer;
    text-align: left;

    border: 1px solid rgba(var(--color-primary-rgb), 0.08);

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* Subtle top light */
.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;

    background: linear-gradient(90deg,
            transparent,
            rgba(var(--color-primary-rgb), 0.35),
            transparent);

    opacity: 0;
    transition: opacity 0.35s ease;
}


/* Soft background glow */
.tool-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -100px;
    right: -80px;

    background: radial-gradient(circle,
            rgba(var(--color-primary-rgb), 0.09) 0%,
            transparent 70%);

    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}


/* Hover */
.tool-card:hover {
    transform: translateY(-5px);

    border-color: rgba(var(--color-primary-rgb), 0.28);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(var(--color-primary-rgb), 0.08);
}


.tool-card:hover::before,
.tool-card:hover::after {
    opacity: 1;
}


/* Icon */
.tool-card-icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: var(--radius-md);

    background:
        linear-gradient(135deg,
            rgba(var(--color-primary-rgb), 0.12),
            rgba(var(--color-primary-rgb), 0.05));

    color: var(--color-primary);
    flex-shrink: 0;

    border: 1px solid rgba(var(--color-primary-rgb), 0.1);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 10px rgba(var(--color-primary-rgb), 0.06);

    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease,
        box-shadow 0.35s ease;
}


.tool-card:hover .tool-card-icon {
    transform: translateY(-2px) scale(1.06);

    background:
        linear-gradient(135deg,
            rgba(var(--color-primary-rgb), 0.18),
            rgba(var(--color-primary-rgb), 0.07));

    box-shadow:
        0 7px 16px rgba(var(--color-primary-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


/* Content */
.tool-card-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}


.tool-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;

    transition: color 0.25s ease;
}


.tool-card:hover .tool-card-title {
    color: var(--color-primary);
}


.tool-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}


/* Arrow */
.tool-card-arrow {
    position: relative;
    z-index: 1;

    align-self: center;

    color: var(--color-text-muted);
    opacity: 0;

    transform: translateX(-6px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}


.tool-card:hover .tool-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary);
}

/* Dropdowns (Language and Theme Switchers) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    background-color: var(--color-border);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 110;
    list-style: none;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 140px;
    display: none;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text-muted);
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--color-surface-elevated);
    color: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item::after {
    content: "/";
    margin-left: 0.5rem;
}

.breadcrumb-item:last-child::after {
    content: "";
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

/* Drop Zone converter styles */
.drop-zone-card {
    position: relative;
    overflow: hidden;

    border: 1px dashed rgba(var(--color-primary-rgb), 0.28);
    border-radius: var(--radius-xl);

    text-align: center;
    padding: 5rem 2rem;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(var(--color-primary-rgb), 0.07),
            transparent 42%),
        linear-gradient(180deg,
            var(--color-surface-elevated) 0%,
            var(--color-surface) 100%);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease,
        background 0.35s ease;
}


/* Subtle decorative glow */
.drop-zone-card::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    top: -190px;
    left: 50%;
    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(var(--color-primary-rgb), 0.08);

    filter: blur(45px);

    pointer-events: none;
}


/* Fine inner border */
.drop-zone-card::after {
    content: "";

    position: absolute;
    inset: 8px;

    border: 1px solid rgba(var(--color-primary-rgb), 0.04);
    border-radius: calc(var(--radius-xl) - 8px);

    pointer-events: none;
}


.drop-zone-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.48);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(var(--color-primary-rgb), 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transform: translateY(-2px);
}


.drop-zone-card.dragover {
    border-color: var(--color-primary);

    background:
        radial-gradient(circle at 50% 0%,
            rgba(var(--color-primary-rgb), 0.13),
            transparent 48%),
        linear-gradient(180deg,
            var(--color-surface-elevated) 0%,
            var(--color-surface) 100%);

    box-shadow:
        0 25px 65px rgba(var(--color-primary-rgb), 0.12),
        0 0 0 5px rgba(var(--color-primary-rgb), 0.04);
}


/* Keep content above decorative layers */
.drop-zone-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}


.drop-zone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    border-radius: 24px;

    background:
        linear-gradient(145deg,
            rgba(var(--color-primary-rgb), 0.14),
            rgba(var(--color-primary-rgb), 0.04));

    color: var(--color-primary);

    border: 1px solid rgba(var(--color-primary-rgb), 0.14);

    box-shadow:
        0 12px 25px rgba(var(--color-primary-rgb), 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    margin-bottom: 0.5rem;

    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        background 0.35s ease;
}


.drop-zone-card:hover .drop-zone-icon {
    transform: translateY(-3px);

    box-shadow:
        0 16px 30px rgba(var(--color-primary-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}


.drop-zone-card.dragover .drop-zone-icon {
    transform: translateY(-5px) scale(1.06);

    background:
        linear-gradient(145deg,
            rgba(var(--color-primary-rgb), 0.22),
            rgba(var(--color-primary-rgb), 0.07));

    box-shadow:
        0 18px 35px rgba(var(--color-primary-rgb), 0.20),
        0 0 0 10px rgba(var(--color-primary-rgb), 0.04);
}


.drop-zone-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}


.drop-zone-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


.drop-zone-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Selected Files panel styling */
.files-list-card {
    margin-top: 2rem;
    padding: 1.5rem;
}

.files-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.files-list-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.files-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar styles */
.files-stack::-webkit-scrollbar {
    width: 6px;
}

.files-stack::-webkit-scrollbar-track {
    background: transparent;
}

.files-stack::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-sm);
}

.file-item-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background-color: var(--color-surface-elevated);
}

.file-item-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.file-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    /* allows text truncation */
}

.file-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-pending {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.badge-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
}

.badge-danger {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge-processing {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

/* Progress indicator styles */
.progress-wrapper {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 0.5rem;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50px;
    transition: width 0.2s ease;
}

.file-item-card.processing .progress-wrapper {
    display: block;
}

/* Global Conversion actions panel */
.files-list-actions {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* FAQ Layout styles */
.faq-container {
    margin-top: 4rem;
}

.faq-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.08);
}

.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.08);
}

.faq-question {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-item[open] .faq-question {
    color: var(--color-primary);
}

.faq-number {
    color: #1e1b4b;
    /* Same color as light theme navbar */
    font-weight: 700;
    margin-right: 0.25rem;
}

[data-theme="dark"] .faq-number {
    color: var(--color-primary);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question .icon-chevron {
    color: var(--color-text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-question:hover .icon-chevron {
    color: var(--color-primary);
}

.faq-item[open] .faq-question .icon-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--color-text-muted);
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-color: var(--color-border);
}

/* Premium SEO Prose Typography Styles */
.seo-content-card {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(var(--color-primary-rgb), 0.07),
            transparent 38%),
        linear-gradient(135deg,
            var(--color-surface-elevated) 0%,
            var(--color-surface) 55%,
            var(--color-surface-elevated) 100%);

    border: 1px solid rgba(var(--color-primary-rgb), 0.12);
    border-radius: var(--radius-xl);

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.05),
        0 3px 10px rgba(15, 23, 42, 0.025),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


/* Subtle decorative glow */
.seo-content-card::before {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    top: -180px;
    right: -80px;

    border-radius: 50%;

    background: rgba(var(--color-primary-rgb), 0.07);

    filter: blur(55px);

    pointer-events: none;
}


/* Premium inner highlight */
.seo-content-card::after {
    content: "";
    position: absolute;
    inset: 1px;

    border-radius: calc(var(--radius-xl) - 1px);

    border: 1px solid rgba(255, 255, 255, 0.035);

    pointer-events: none;
}


.seo-content-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.22);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.07),
        0 5px 16px rgba(var(--color-primary-rgb), 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transform: translateY(-2px);
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #1e1b4b;
    /* Same color as light theme navbar */
    position: relative;
    display: block;
}

[data-theme="dark"] .prose h3 {
    color: var(--color-text);
}

.prose h3:first-child {
    margin-top: 0;
}

.prose h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose h4:first-child {
    margin-top: 0;
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose ul,
.prose ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.prose li {
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.prose strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Premium Looking Links in Prose & Info Cards */
.prose a,
.info-card a,
.premium-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.15rem 0.5rem;
    margin: 0 0.15rem;
    border-radius: var(--radius-sm, 6px);
    background: rgba(var(--color-primary-rgb, 99, 102, 241), 0.08);
    border-bottom: 1.5px solid rgba(var(--color-primary-rgb, 99, 102, 241), 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    word-break: break-word;
}

.prose a:hover,
.info-card a:hover,
.premium-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-bottom-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 99, 102, 241), 0.35);
    transform: translateY(-1.5px);
    text-decoration: none;
}

[data-theme="dark"] .prose a,
[data-theme="dark"] .info-card a,
[data-theme="dark"] .premium-link {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    border-bottom-color: rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .prose a:hover,
[data-theme="dark"] .info-card a:hover,
[data-theme="dark"] .premium-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

@media (max-width: 768px) {
    .seo-content-card {
        padding: 2rem 1rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }
}

/* Sidebar styling */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    padding: 1.5rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.related-tools-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.related-tool-item:hover {
    color: var(--color-primary);
    background-color: var(--color-surface-elevated);
}

.related-tool-icon {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.related-tool-item:hover .related-tool-icon {
    color: var(--color-primary);
}

/* 404 Error page design */
.error-page {
    padding: 6.5rem 0;
}

.error-card {
    text-align: center;
    padding: 4rem 2rem;
}

.error-icon {
    color: var(--color-danger);
    margin-bottom: 1.5rem;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
}

/* Responsive updates */
@media (max-width: 768px) {
    .drop-zone-card {
        padding: 3rem 1rem;
    }

    .drop-zone-text {
        font-size: 1.1rem;
    }

    .file-item-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .file-item-thumbnail {
        margin: 0 auto;
    }

    .file-item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Premium Hover lift utility */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease !important;
}

.hover-lift:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--color-primary) !important;
}

/* How it works steps styling */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.step-card {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.08);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(var(--color-primary-rgb), 0.05);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(var(--color-primary-rgb), 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-number {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.step-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e1b4b;
    /* Same color as light theme navbar */
    transition: color 0.3s ease;
}

[data-theme="dark"] .step-card-title {
    color: var(--color-text);
    /* Standard light text in dark theme */
}

.step-card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .step-card {
        border-bottom: 1px solid var(--color-border);
        padding: 2rem 1rem;
    }

    .step-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}