/* assets/css/converter.css */

/* Hidden Input (Accessible) */
.ac-hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Label Button Styling */
label#ac-select-btn {
    cursor: pointer;
    display: inline-block;
}

/* --- MEGA MENU (Theme Integrated) --- */
.ac-converter-nav {
    /* Use theme variables for auto Dark/Light mode */
    background: var(--color-surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    /* Match theme radius */

    margin-bottom: 30px;
    padding: 0 30px;
    font-family: var(--font-main);

    /* STICKY POSITIONING */
    position: sticky;
    top: 80px;
    /* Increased from 60px to clear taller headers */
    z-index: 900;
    /* High enough to overlap content cards, lower than header (usually 1000) */

    box-shadow: var(--shadow-lg);
    display: block !important;
    width: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Make it slightly transparent if supported (optional polish) */


.actb-search-wrapper-inline {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ac-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
    justify-content: center;
    /* Center items instead of space-between */
    height: 70px;
    gap: 40px;
    /* Increased gap for better spacing */
}

.ac-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ac-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95em;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ac-nav-link:hover,
.ac-nav-item:hover .ac-nav-link {
    color: var(--color-heading);
    background: var(--color-surface-hover);
}

.ac-nav-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    opacity: 0.7;
    margin-top: 2px;
}

/* --- Restored Simple Menu List STyles --- */
.ac-tool-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ac-tool-link-list li {
    margin-bottom: 12px;
}

.ac-tool-link-list a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-tool-link-list a:hover {
    color: var(--color-text);
    transform: translateX(3px);
}

.ac-menu-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    opacity: 0.8;
    transition: all 0.2s;
}

.ac-tool-link-list a:hover .ac-menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* --- PREMIUM TOOL CARDS (Page Content) --- */
.actb-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Wider cards */
    gap: 24px;
    padding-bottom: 60px;
}

.actb-premium-card {
    background: var(--color-surface);
    /* Dark card background */
    border: 1px solid var(--color-border);
    border-radius: 20px;
    /* Large radius */
    padding: 32px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.actb-premium-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-accent-soft);
}

/* Card Icon Box */
.actb-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
    /* Purple/Blue Gradient */
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.actb-card-icon-wrap .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* Tool specific icon gradients */
.actb-premium-card[data-cat="video"] .actb-card-icon-wrap {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.25);
}

.actb-premium-card[data-cat="image"] .actb-card-icon-wrap {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.actb-premium-card[data-cat="pdf"] .actb-card-icon-wrap {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.25);
}

.actb-premium-card[data-cat="gif"] .actb-card-icon-wrap {
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.25);
}

/* Card Content */
.actb-card-body {
    flex: 1;
    margin-bottom: 20px;
}

.actb-card-title {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

.actb-card-desc {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Footer Link */
.actb-card-footer {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.actb-action {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.actb-premium-card:hover .actb-action {
    gap: 8px;
    color: var(--color-accent-hover);
}

/* === Mega Menu Dropdown === */
.ac-converter-nav .ac-dropdown-menu {
    position: absolute;
    top: 100%;
    /* Default: Left aligned (Convert) */
    left: -20px;
    background: #151820;
    /* Solid Dark Background (No Transparency) */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: none;
    /* Hidden by default */
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;

    /* Default Width (Wide for Convert) */
    width: 1000px;
    max-width: min(100vw - 40px, 1100px);
    /* prevent horizontal scrolling off screen */
}

@keyframes acSlideDownCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

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

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

/* Specific Modifiers based on Menu Item */

/* 1. CONVERT (Full Width of Nav) */
.ac-item-convert {
    position: static;
    /* Allow dropdown to reference nav container */
}

.ac-item-convert .ac-dropdown-menu {
    left: 0;
    /* Keep flush left */
    width: max-content;
    max-width: calc(100vw - 40px);
    transform: translateY(10px);
    animation-name: acSlideDown;
    border-radius: 0 0 12px 12px;
    /* Smooth corner on bottom */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ac-nav-item.has-dropdown.ac-item-convert:hover .ac-dropdown-menu {
    transform: translateY(0);
}

/* 2. COMPRESS (Full Width of Nav) */
.ac-item-compress {
    position: static;
}

.ac-item-compress .ac-dropdown-menu {
    left: 50%;
    /* Center it roughly beneath the parent element */
    transform: translate(-50%, 10px);
    width: max-content;
    max-width: calc(100vw - 40px);
    animation-name: acSlideDownCentered;
    border-radius: 12px;
    /* Give it full rounded corners, as it's not flush */
}

.ac-nav-item.has-dropdown.ac-item-compress:hover .ac-dropdown-menu {
    transform: translate(-50%, 0);
}

/* 3. OTHER TOOLS (Full Width of Nav) */
.ac-item-tools {
    position: static;
}

.ac-item-tools .ac-dropdown-menu {
    left: auto;
    right: 0;
    /* Drop down from the right edge */
    width: max-content;
    max-width: calc(100vw - 40px);
    transform: translateY(10px);
    animation-name: acSlideDown;
    border-radius: 12px;
}

.ac-nav-item.has-dropdown.ac-item-tools:hover .ac-dropdown-menu {
    transform: translateY(0);
}


/* Show on Hover */
.ac-nav-item.has-dropdown:hover .ac-dropdown-menu {
    display: block;
    opacity: 1;
    /* Transform handled in specific rules above to avoid conflict */
}

/* Badge (Optional) */
.actb-badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(99, 102, 241, 0.15);
    /* Accent soft */
    color: var(--color-accent);
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mega Menu Modifiers */
.ac-nav-item.has-dropdown:hover .ac-dropdown-menu,
.ac-nav-item.has-dropdown:focus-within .ac-dropdown-menu {
    display: block;
}

.ac-nav-item.has-dropdown .ac-dropdown-menu {
    width: 1100px;
    /* Wider to fit 5 columns (Video, Image, PDF, GIF, Others) */
    max-width: min(100vw - 40px, 1200px);
    /* Max width prevents overflow */
    max-height: 80vh;
    /* Prevent going off bottom of screen */
    overflow-y: auto;
    /* Scroll if too tall */
    -webkit-overflow-scrolling: touch;
}

.ac-dropdown-content {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns */
    gap: 30px;
    padding-bottom: 20px;
}

/* Fix List Styles (Remove dots) */
.ac-tool-link-list,
.ac-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ac-tool-link-list li,
.ac-nav-list li {
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

/* Fix Icon Alignment & Spacing */
.ac-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* Fixed width to align text */
    height: 20px;
    margin-right: 8px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.ac-tool-link {
    display: flex;
    align-items: center;
    /* ... existing styles ... */
}


/* --- RESPONSIVE MODIFIERS --- */
@media (max-width: 1150px) {
    .ac-nav-item.has-dropdown .ac-dropdown-menu {
        width: 100%;
        left: 0;
    }

    /* Force Tools to stay right aligned even here */
    .ac-nav-item.has-dropdown.ac-item-tools .ac-dropdown-menu {
        width: 300px;
        left: auto;
        right: 0;
    }
}

@media (max-width: 900px) {

    /* Mobile/Tablet Menu Handling */
    .ac-nav-item.has-dropdown .ac-dropdown-menu {
        position: fixed;
        /* Fix to screen on mobile */
        top: 140px;
        /* Below the sticky nav */
        left: 0;
        width: 100%;
        height: calc(100vh - 140px);
        border-radius: 0;
        border-top: 1px solid var(--color-border);
        box-shadow: none;
        padding: 20px;
    }

    .ac-dropdown-content {
        grid-template-columns: 1fr;
        /* Stack columns vertically on mobile */
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* 1. Mega Menu -> Horizontal Scroll Container */
    .ac-converter-nav {
        top: 60px;
        /* Adjust sticky for mobile header */
        padding: 0 15px;
        margin-bottom: 20px;
        overflow-x: auto;
        /* Enable scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .ac-converter-nav::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .ac-nav-list {
        width: max-content;
        /* Force items to layout horizontally */
        gap: 5px;
        padding-right: 15px;
        /* End padding */
        height: 60px;
    }

    .ac-nav-link {
        font-size: 0.9em;
        padding: 6px 12px;
        white-space: nowrap;
        /* Prevent wrapping */
    }

    /* Disable Hover Dropdowns on Mobile - Click only (or rely on main index) */
    /* For simplicity in this UX, we might hide the mega dropdowns on mobile 
       and let users just click the top level links which go to /tools/converter/video/ etc.
       OR make them tap to open. 
       Given the "Link" type is dominant, let's ensure they are clickable.
    */
    .ac-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 70vh;
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        border-top: 1px solid var(--color-accent);
    }

    .ac-nav-item.has-dropdown:focus-within .ac-dropdown-menu,
    .ac-nav-item.has-dropdown:active .ac-dropdown-menu {
        /* Mobile "Sheet" behavior is complex without JS. 
           For now, let's keep the nav simple: Horizontal Scroll Pills.
           If complex dropdowns are needed, we need JS toggles.
           Assuming users will use the Main Grid for navigation mostly.
        */
        display: none;
        /* Hide dropdowns on mobile to prevent UX mess, rely on grid */
    }

    /* 2. Tool Grid -> 1 Column */
    .actb-tools-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 16px;
    }

    .actb-premium-card {
        padding: 24px;
        /* Slightly less padding */
    }

    .actb-card-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .actb-card-icon-wrap .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .actb-card-title {
        font-size: 1.1em;
    }

    /* 3. Search Bar */
    .actb-search-wrapper-inline {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .actb-search-box {
        padding: 12px 20px;
    }
}

.ac-dropdown-col {
    min-width: 0;
}

.ac-col-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
}

.ac-col-title .dashicons {
    color: var(--color-accent);
}

.ac-menu-grid {
    display: grid;
    gap: 8px;
    /* Tight gap */
}

/* Mini Cards in Menu */
.ac-menu-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--color-surface-2);
    /* Slight contrast */
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.ac-menu-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.ac-menu-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    /* Accent soft */
    border-radius: 6px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.ac-menu-card:hover .ac-menu-card-icon {
    background: var(--color-accent);
    color: #fff;
}

.ac-menu-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-menu-card-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-heading);
}

.ac-menu-card-arrow {
    font-size: 1.2em;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.ac-menu-card:hover .ac-menu-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-accent);
}

/* --- SEARCH BAR (Theme Integrated) --- */
.actb-search-box {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-md);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.actb-search-box:focus-within {
    background: var(--color-surface) !important;
    border-color: var(--color-accent) !important;
    box-shadow: var(--shadow-lg) !important;
}

.actb-search-icon {
    font-size: 24px !important;
    color: var(--color-text-muted) !important;
}

#actb-converter-search {
    background: transparent !important;
    border: none !important;
    color: var(--color-text) !important;
    font-size: 1.1em;
    width: 100%;
    outline: none !important;
    font-family: var(--font-main);
}

#actb-converter-search::placeholder {
    color: var(--color-text-muted);
}


/* --- GRID LAYOUT --- */
.actb-converter-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.actb-category-group h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--actb-dark);
}

.actb-grid-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.actb-tool-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.actb-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.actb-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: var(--actb-blue);
    /* Default */
}

/* Icon Colors using nth-child or specific classes would be better, but sticking to simple for now */
.actb-card-icon.video_audio {
    background: #E91E63;
}

.actb-card-icon.image {
    background: #2196F3;
}

.actb-card-icon.pdf_docs {
    background: #F44336;
}

.actb-card-icon.gif {
    background: #9C27B0;
}

.actb-card-icon.others {
    background: #607D8B;
}

.actb-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--actb-dark);
}

.actb-card-content p {
    margin: 0;
    font-size: 0.85em;
    color: var(--color-text-secondary);
}

/* --- SINGLE CONVERTER APP LAYOUT --- */
.actb-converter-single {
    padding-top: 120px;
}

.actb-converter-single .actb-header {
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
    text-align: center;
}

/* Main App Container */
.actb-converter-app {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    transition: all 0.3s ease;
}

/* Side-by-Side Layout (Desktop) when files are present */
@media (min-width: 900px) {
    .actb-converter-app.ac-has-files {
        grid-template-columns: 350px 1fr;
        align-items: start;
    }

    .actb-converter-app.ac-has-files .ac-drop-zone {
        min-height: 400px;
        position: sticky;
        top: 100px;
    }

    .actb-converter-app.ac-has-files .ac-action-bar {
        grid-column: 2;
    }
}

/* --- Drop Zone --- */
.ac-drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    background: var(--glass-surface);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.ac-drop-zone:hover,
.ac-drop-zone.highlight {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.05);
    /* Accent tint */
    transform: scale(1.01);
}

.ac-drop-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.ac-drop-zone h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-heading);
}

.ac-drop-zone p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-size: 1em;
}

.ac-small-text {
    font-size: 0.85em;
    color: var(--color-text-muted);
    margin-top: 20px;
    opacity: 0.8;
}

/* Primary Button */
.ac-btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ac-btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* --- File List Styling --- */
.ac-file-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.ac-file-item {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.ac-file-item:hover {
    border-color: var(--color-accent-soft);
    background: rgba(255, 255, 255, 0.03);
}

.ac-file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.ac-file-info .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 10px;
    border-radius: 10px;
    flex-shrink: 0;
}

.ac-file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ac-file-name {
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1em;
}

.ac-file-size {
    font-size: 0.85em;
    color: var(--color-text-muted);
}

/* Status Badge */
.ac-file-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--color-surface-2);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.ac-file-status.processing {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    animation: acPulse 1.5s infinite;
}

.ac-file-status.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.ac-file-status.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

@keyframes acPulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Progress Bar */
.ac-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: transparent;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.ac-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

/* Action Buttons in Item */
.ac-remove-file {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ac-remove-file:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ac-btn-download {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}

.ac-btn-download:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

/* --- Action Bar --- */
.ac-action-bar {
    margin-top: 0;
    padding: 20px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.ac-settings-panel label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-heading);
}

.ac-settings-panel select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
    cursor: pointer;
}

.ac-btn-action.ac-btn-secondary {
    background: var(--color-surface-2);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-btn-action.ac-btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
    color: var(--color-heading);
    transform: translateY(-2px);
}

/* --- Info & SEO Content (Premium Layout) --- */
.actb-split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

@media (max-width: 900px) {
    .actb-split-content {
        grid-template-columns: 1fr;
    }
}

.actb-content-card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.actb-content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.actb-content-card h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-heading);
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 15px;
}

.actb-content-card h2 .dashicons {
    color: var(--color-accent);
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Feature List (Why Use) */
.actb-feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.actb-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.actb-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.actb-feature-icon .dashicons {
    color: var(--color-accent);
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.actb-feature-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--color-heading);
}

.actb-feature-text p {
    margin: 0;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Step List (How To) */
.actb-step-list {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.actb-step-item {
    display: flex;
    gap: 25px;
    position: relative;
    padding-bottom: 40px;
}

.actb-step-item:last-child {
    padding-bottom: 0;
}

/* Vertical Line */
.actb-step-item::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 17px;
    width: 2px;
    height: calc(100% - 40px);
    background: var(--color-border);
    z-index: 0;
}

.actb-step-item:last-child::before {
    display: none;
}

.actb-step-marker {
    width: 36px;
    height: 36px;
    background: var(--color-surface);
    border: 3px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1em;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.actb-step-body h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--color-heading);
}

.actb-step-body p {
    margin: 0;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- REVIEWS SECTION (Premium Glassmorphic) --- */
.actb-reviews-container {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.actb-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.actb-reviews-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8em;
    color: var(--color-heading);
}

.actb-reviews-header h3 .dashicons {
    color: var(--color-accent);
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.actb-rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass-surface);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.actb-big-rating {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1;
}

.actb-rating-meta {
    display: flex;
    flex-direction: column;
}

.actb-stars {
    color: #FFC107;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.actb-rating-meta span {
    font-size: 0.85em;
    color: var(--color-text-muted);
}

/* Review Form */
.actb-review-form-wrapper {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.actb-review-form-wrapper h4 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: var(--color-heading);
}

.actb-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.actb-star-input input {
    display: none;
}

.actb-star-input label {
    font-size: 32px;
    color: var(--color-border);
    /* Inactive color */
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.actb-star-input input:checked~label,
.actb-star-input label:hover,
.actb-star-input label:hover~label {
    color: #FFC107;
    transform: scale(1.1);
}

.actb-review-form-wrapper textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: inherit;
    color: var(--color-text);
    resize: vertical;
    transition: all 0.3s;
}

.actb-review-form-wrapper textarea:focus {
    background: var(--color-surface);
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Review List */
.actb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actb-review-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.actb-review-item:hover {
    background: var(--glass-surface);
    border-color: var(--color-accent-soft);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.actb-review-avatar img {
    border-radius: 50%;
    border: 2px solid var(--color-surface-2);
}

.actb-review-content {
    flex: 1;
}

.actb-review-top {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.actb-reviewer-name {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--color-heading);
}

.actb-review-stars {
    color: #FFC107;
    font-size: 0.9em;
    background: rgba(255, 193, 7, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.actb-review-date {
    color: var(--color-text-muted);
    font-size: 0.85em;
    margin-left: auto;
}

.actb-review-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-size: 1em;
}

.actb-no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-style: italic;
    background: var(--color-surface-2);
    border-radius: 12px;
}

.actb-login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--glass-surface);
    border-radius: 12px;
    border: 1px dashed var(--color-border);
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.actb-login-prompt a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.actb-login-prompt a:hover {
    text-decoration: underline;
}



.ac-file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent-soft);
}

.ac-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

.ac-file-info .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    box-sizing: content-box;
    border-radius: 8px;
}

.ac-file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ac-file-name {
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}

.ac-file-size {
    font-size: 0.8em;
    color: var(--color-text-muted);
}

/* Status Badge */
.ac-file-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--color-surface-2);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.ac-file-status.processing {
    color: #3b82f6;
    /* Blue */
    background: rgba(59, 130, 246, 0.1);
    animation: acPulse 1.5s infinite;
}

.ac-file-status.success {
    color: #10b981;
    /* Green */
    background: rgba(16, 185, 129, 0.1);
}

.ac-file-status.error {
    color: #ef4444;
    /* Red */
    background: rgba(239, 68, 68, 0.1);
}

@keyframes acPulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Progress Bar */
.ac-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: transparent;
    overflow: hidden;
}

.ac-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

/* Action Buttons */
.ac-remove-file {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ac-remove-file:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.ac-btn-download {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}

.ac-btn-download:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Action Bar (Bottom settings) */
.ac-action-bar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ac-settings-panel label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-heading);
}

.ac-settings-panel select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
    font-family: inherit;
    cursor: pointer;
    min-width: 100px;
}



.ac-drop-zone {
    border: 2px dashed var(--actb-border-gray, #ccc);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    /* Subtle bg */
    color: var(--color-text, inherit);
}

[data-theme="light"] .ac-drop-zone {
    background: rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
    color: #334155;
}

[data-theme="light"] .ac-drop-zone:hover {
    border-color: var(--actb-blue, #2196F3);
    background: rgba(33, 150, 243, 0.08);
}

.ac-drop-zone:hover {
    border-color: var(--actb-blue, #2196F3);
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.01);
}

.ac-drop-icon {
    font-size: 48px;
    color: var(--actb-blue, #2196F3);
    margin-bottom: 15px;
    display: block;
}

.ac-btn-primary {
    background: var(--actb-blue, #2196F3);
    color: #ffffff !important;
    /* Force white text */
    border: none;
    padding: 14px 34px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.ac-btn-primary:hover {
    background: #005bb5;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 800px) {
    .actb-converter-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .ac-dropdown-content {
        flex-direction: column;
        gap: 20px;
    }

    .ac-nav-list {
        flex-direction: column;
        gap: 10px;
    }
}