/* ==========================================================================
   Craisto PDF Platform - Dashboard Layout Specific Styles
   ========================================================================== */

.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    min-height: 100vh;
    background-color: #f8f9fc;
}

/* ==========================================================================
   Left Sidebar
   ========================================================================== */
.dash-sidebar-left {
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.dash-logo {
    width: 36px;
    height: 36px;
    background-color: #4f46e5;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dash-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.dash-nav {
    flex: 1;
    overflow-y: auto;
}

.dash-nav-section {
    margin-bottom: 1.5rem;
}

.dash-nav-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05rem;
    padding: 0 0.5rem 0.5rem;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s, color 0.2s;
}

.dash-nav-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dash-nav-item.active {
    background-color: #eef2ff;
    color: #4f46e5;
}

.dash-nav-icon {
    width: 20px;
    text-align: center;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #f9fafb;
}

.dash-user-avatar {
    width: 40px;
    height: 40px;
    background-color: #4f46e5;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
}

.dash-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.dash-user-plan {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.dash-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dash-stat-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.dash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.dash-content-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.dash-ghost-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
}

.dash-table {
    width: 100%;
}

.dash-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.dash-table-row:last-child {
    border-bottom: none;
}

.dash-table-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    background-color: #f9fafb;
}

/* ==========================================================================
   Right Sidebar
   ========================================================================== */
.dash-sidebar-right {
    background-color: #f8f9fc;
    border-left: 1px solid #e9ecef;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.dash-widget {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
}

.dash-progress {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.dash-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #4f46e5 0%,
        #6366f1 30%,
        #8b5cf6 50%,
        #6366f1 70%,
        #4f46e5 100%
    );
    background-size: 200% 100%;
    animation: dashProgressGlow 2s linear infinite;
}

.dash-progress-42 {
    width: 42%;
}

.dash-widget-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
}

.dash-secondary-btn {
    background-color: transparent;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.dash-btn-block {
    width: 100%;
    margin-top: 1rem;
}

.dash-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dash-tool-btn {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    background-color: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.dash-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dash-activity-dot {
    width: 8px;
    height: 8px;
    background-color: #4f46e5;
    border-radius: 50%;
    margin-top: 6px;
}

.dash-activity-info {
    display: flex;
    flex-direction: column;
    font-size: 0.8125rem;
    color: #374151;
}

.dash-activity-time {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ==========================================================================
   Premium Hero Header — Glassmorphism Blue-Purple Gradient
   ========================================================================== */

.dash-hero-header {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin: 1.5rem 2rem 0 2rem;
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 35%, #7c3aed 55%, #4f46e5 85%, #3b82f6 100%);
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    box-shadow:
        0 8px 32px rgba(79, 70, 229, 0.18),
        0 2px 8px rgba(109, 40, 217, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-hero-glow {
    position: absolute;
    top: -50%;
    right: -15%;
    width: 55%;
    height: 90%;
    background: radial-gradient(
        ellipse at center,
        rgba(167, 139, 250, 0.38) 0%,
        rgba(139, 92, 246, 0.22) 30%,
        rgba(99, 102, 241, 0.1) 55%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
}

.dash-hero-glow::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(99, 102, 241, 0.08) 40%,
        transparent 65%
    );
    filter: blur(4px);
}

.dash-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dash-hero-particles::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    top: 12%;
    left: 8%;
    box-shadow:
        48px 36px 0 2px rgba(255, 255, 255, 0.14),
        130px 78px 0 1px rgba(255, 255, 255, 0.2),
        215px 32px 0 3px rgba(255, 255, 255, 0.1),
        310px 110px 0 1px rgba(255, 255, 255, 0.18),
        72px 165px 0 2px rgba(255, 255, 255, 0.08),
        260px 175px 0 1px rgba(255, 255, 255, 0.22),
        380px 50px 0 2px rgba(255, 255, 255, 0.12),
        160px 200px 0 1px rgba(255, 255, 255, 0.16);
    animation: dashParticleDrift 10s ease-in-out infinite alternate;
}

.dash-hero-particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    top: 55%;
    left: 22%;
    box-shadow:
        65px -25px 0 1px rgba(255, 255, 255, 0.16),
        155px 38px 0 2px rgba(255, 255, 255, 0.1),
        228px 95px 0 1px rgba(255, 255, 255, 0.2),
        330px -55px 0 3px rgba(255, 255, 255, 0.08),
        95px 75px 0 1px rgba(255, 255, 255, 0.14),
        290px 130px 0 2px rgba(255, 255, 255, 0.12),
        400px 80px 0 1px rgba(255, 255, 255, 0.18),
        180px -10px 0 2px rgba(255, 255, 255, 0.06);
    animation: dashParticleDrift 14s ease-in-out infinite alternate-reverse;
}

@keyframes dashParticleDrift {
    0%   { transform: translateY(0) translateX(0); }
    33%  { transform: translateY(-10px) translateX(6px); }
    66%  { transform: translateY(4px) translateX(-4px); }
    100% { transform: translateY(-6px) translateX(8px); }
}

.dash-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dash-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.dash-hero-top .dash-search {
    flex: 1;
    max-width: 440px;
}

.dash-hero-top .dash-search-input {
    width: 100%;
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    font-size: 0.875rem;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.dash-hero-top .dash-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.dash-hero-top .dash-search-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2), 0 2px 12px rgba(139, 92, 246, 0.15);
}

.dash-hero-top .dash-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-hero-top .dash-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.dash-hero-top .dash-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.dash-hero-top .dash-primary-btn {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dash-hero-top .dash-primary-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25), 0 2px 8px rgba(255, 255, 255, 0.1);
}

.dash-hero-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dash-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-hero-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.dash-hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 500px;
}

.dash-hero-badge-row {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    align-items: center;
}

.dash-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.dash-hero-badge:hover {
    transform: translateY(-1px);
}

.dash-hero-badge--accent {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-hero-badge--accent:hover {
    background: rgba(255, 255, 255, 0.26);
}

.dash-hero-badge--muted {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
}

.dash-hero-badge--muted:hover {
    background: rgba(255, 255, 255, 0.14);
}

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

@media (max-width: 1200px) {
    .dash-layout {
        grid-template-columns: 260px 1fr;
    }

    .dash-sidebar-right {
        display: none;
    }

    .dash-hero-header {
        margin: 1.25rem 1.5rem 0 1.5rem;
        padding: 1.75rem 2rem 2rem 2rem;
    }

    .dash-hero-glow {
        width: 50%;
        right: -10%;
    }
}

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

    .dash-sidebar-left {
        display: none;
    }

    .dash-hero-header {
        margin: 1rem;
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
        border-radius: 18px;
        background: linear-gradient(135deg, #4338ca 0%, #6d28d9 40%, #7c3aed 60%, #4f46e5 100%);
    }

    .dash-hero-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .dash-hero-top .dash-search {
        max-width: 100%;
    }

    .dash-hero-top .dash-header-actions {
        justify-content: flex-end;
    }

    .dash-hero-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dash-hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .dash-hero-subtitle {
        font-size: 0.8125rem;
        max-width: 100%;
    }

    .dash-hero-badge-row {
        justify-content: flex-start;
    }

    .dash-hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        border-radius: 10px;
    }

    .dash-hero-glow {
        top: -40%;
        right: -5%;
        width: 45%;
        height: 75%;
    }

    @keyframes dashParticleDrift {
        0%   { transform: translateY(0) translateX(0); }
        50%  { transform: translateY(-5px) translateX(4px); }
        100% { transform: translateY(3px) translateX(-3px); }
    }
}

@media (max-width: 480px) {
    .dash-hero-header {
        margin: 0.75rem;
        padding: 1rem 1rem 1.25rem 1rem;
        border-radius: 14px;
    }

    .dash-hero-title {
        font-size: 1.25rem;
    }

    .dash-hero-top .dash-primary-btn {
        padding: 0.6rem 1.25rem;
    }

    .dash-hero-badge-row {
        gap: 0.5rem;
    }
}
/* Premium Stats Icons */

.dash-stat-icon-wrap{
    width:56px;
    height:56px;
    min-width:56px;
    min-height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
}

.dash-stat-icon{
    width:28px;
    height:28px;
    display:block;
}

.dash-stat-body{
    flex:1;
}

.dash-stat-number{
    display:block;
    font-size:30px;
    font-weight:700;
    color:#111827;
    line-height:1;
    margin-bottom:6px;
}

.dash-stat-label{
    display:block;
    font-size:14px;
    color:#6b7280;
}

.dash-stat-trend{
    position:absolute;
    top:18px;
    right:18px;
    font-size:13px;
    font-weight:600;
    color:#10b981;
}
/* =========================================================
   Free PDF Tools Section
   Premium glassmorphism cards with hover lift + glow.
   Naming follows existing dash-* convention.
   ========================================================= */

.dash-pdf-tools {
    margin-bottom: 28px;
}

.dash-pdf-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dash-pdf-tools-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-pdf-tools-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #1a1d29;
}

.dash-pdf-tools-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.dash-pdf-tools-cta {
    flex-shrink: 0;
}

.dash-pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.dash-tool-card {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    border-radius: 20px;
    cursor: pointer;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(243, 246, 255, 0.7) 100%);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 14px rgba(20, 30, 60, 0.06),
        0 1px 2px rgba(20, 30, 60, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
    will-change: transform;
}

.dash-tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.dash-tool-glow {
    position: absolute;
    top: -45%;
    right: -35%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.4) 0%, transparent 70%);
    filter: blur(22px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.dash-tool-card:hover,
.dash-tool-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 20px 40px -10px rgba(79, 70, 229, 0.22),
        0 8px 18px -6px rgba(79, 70, 229, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: none;
}

.dash-tool-card:hover .dash-tool-glow,
.dash-tool-card:focus-visible .dash-tool-glow {
    opacity: 1;
}

.dash-tool-card:hover .dash-tool-icon-wrap,
.dash-tool-card:focus-visible .dash-tool-icon-wrap {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 18px -4px rgba(79, 70, 229, 0.32);
}

.dash-tool-icon-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(56, 189, 248, 0.12) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.dash-tool-icon {
    width: 26px;
    height: 26px;
    color: #4f46e5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-tool-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-tool-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.2px;
    color: #1a1d29;
}

.dash-tool-desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: #6b7280;
}

/* ---- Per-card accent variations (4-column rhythm) ---- */
.dash-tool-card:nth-child(4n + 1) .dash-tool-icon-wrap {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12));
    border-color: rgba(99, 102, 241, 0.18);
}
.dash-tool-card:nth-child(4n + 2) .dash-tool-icon-wrap {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(56, 189, 248, 0.12));
    border-color: rgba(14, 165, 233, 0.18);
}
.dash-tool-card:nth-child(4n + 3) .dash-tool-icon-wrap {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(20, 184, 166, 0.12));
    border-color: rgba(16, 185, 129, 0.18);
}
.dash-tool-card:nth-child(4n + 4) .dash-tool-icon-wrap {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(244, 114, 182, 0.12));
    border-color: rgba(245, 158, 11, 0.18);
}

.dash-tool-card:nth-child(4n + 1) .dash-tool-icon { color: #6366f1; }
.dash-tool-card:nth-child(4n + 2) .dash-tool-icon { color: #0ea5e9; }
.dash-tool-card:nth-child(4n + 3) .dash-tool-icon { color: #10b981; }
.dash-tool-card:nth-child(4n + 4) .dash-tool-icon { color: #f59e0b; }

/* ---- Tablet: 3 columns ---- */
@media (max-width: 1100px) {
    .dash-pdf-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Mobile: 2 columns ---- */
@media (max-width: 680px) {
    .dash-pdf-tools-header {
        align-items: flex-start;
    }
    .dash-pdf-tools-title {
        font-size: 19px;
    }
    .dash-pdf-tools-subtitle {
        font-size: 13px;
    }
    .dash-pdf-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .dash-tool-card {
        padding: 16px 14px;
        border-radius: 18px;
    }
    .dash-tool-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .dash-tool-icon {
        width: 22px;
        height: 22px;
    }
    .dash-tool-name {
        font-size: 14px;
    }
    .dash-tool-desc {
        font-size: 11.5px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .dash-tool-card,
    .dash-tool-icon-wrap,
    .dash-tool-glow {
        transition: none !important;
    }
    .dash-tool-card:hover,
    .dash-tool-card:focus-visible {
        transform: none;
    }
}
/* =========================================================
   Free PDF Tools Section (Premium SaaS Redesign)
   ========================================================= */

.dash-pdf-tools {
    margin-bottom: 32px;
}

.dash-pdf-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dash-pdf-tools-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #111827;
}

.dash-pdf-tools-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Filter Pills */
.dash-filter-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.dash-filter-pills::-webkit-scrollbar {
    height: 4px;
}
.dash-filter-pills::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.dash-filter-pill {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.dash-filter-pill:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.dash-filter-pill.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.2);
}

/* Tools Grid */
.dash-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Tool Card */
.dash-tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    cursor: pointer;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02), 0 2px 4px 0 rgba(0,0,0,0.02);
    outline: none;
}

/* Gradient Border Trick */
.dash-tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(229,231,235,0.8), rgba(255,255,255,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s ease;
}

.dash-tool-card:hover,
.dash-tool-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.04);
}

.dash-tool-card:hover::before,
.dash-tool-card:focus-visible::before {
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(255,255,255,0));
}

.dash-tool-card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dash-tool-header {
    margin-bottom: 20px;
}

.dash-tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dash-tool-card:hover .dash-tool-icon-wrap,
.dash-tool-card:focus-visible .dash-tool-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.dash-tool-icon {
    width: 24px;
    height: 24px;
}

.dash-tool-body {
    flex-grow: 1;
    margin-bottom: 16px;
}

.dash-tool-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.2px;
}

.dash-tool-desc {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-tool-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dash-tool-arrow {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: transform 0.3s ease, color 0.3s ease;
}

.dash-tool-card:hover .dash-tool-arrow,
.dash-tool-card:focus-visible .dash-tool-arrow {
    transform: translateX(4px);
    color: #111827;
}

/* Premium Color Variations for Icons */
.tool-icon-1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.tool-icon-2 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.tool-icon-3 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.tool-icon-4 { background: linear-gradient(135deg, #ef4444, #f87171); }
.tool-icon-5 { background: linear-gradient(135deg, #22c55e, #4ade80); }
.tool-icon-6 { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.tool-icon-7 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.tool-icon-8 { background: linear-gradient(135deg, #f97316, #fb923c); }
/* =========================================================
   Free PDF Tools Section - Premium Visual Redesign
   ========================================================= */

.dash-pdf-tools {
    margin-bottom: 32px;
}

.dash-pdf-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dash-pdf-tools-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-pdf-tools-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.dash-pdf-tools-subtitle {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

.dash-pdf-tools-cta {
    flex-shrink: 0;
}

.dash-pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dash-tool-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
    will-change: transform;
}

.dash-tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 250, 252, 0) 100%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.dash-tool-glow {
    position: absolute;
    top: -50%;
    right: -40%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.dash-tool-card:hover,
.dash-tool-card:focus-visible {
    transform: translateY(-8px);
    border-color: #6366f1; /* Brand color border on hover */
    box-shadow: 
        0 20px 40px -12px rgba(79, 70, 229, 0.2),
        0 8px 16px -8px rgba(0, 0, 0, 0.08);
    outline: none;
}

.dash-tool-card:hover .dash-tool-glow,
.dash-tool-card:focus-visible .dash-tool-glow {
    opacity: 1;
}

.dash-tool-card:hover .dash-tool-icon-wrap,
.dash-tool-card:focus-visible .dash-tool-icon-wrap {
    transform: scale(1.12);
}

.dash-tool-icon-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 20px;
    opacity: 1; /* Force 100% opacity */
    box-shadow: 
        0 8px 16px -4px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4); /* Inner highlight */
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dash-tool-icon {
    width: 28px;
    height: 28px;
    color: #ffffff; /* Force icons to be white */
    stroke-width: 2.5; /* Make stroke appear bolder */
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.dash-tool-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-tool-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #0f172a; /* Darker title */
}

.dash-tool-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b; /* Higher contrast description */
}

/* ---- Premium Color Variations for Icons (Cycling through 12 tools) ---- */
.dash-tool-card:nth-child(12n + 1) .dash-tool-icon-wrap { background: linear-gradient(135deg, #6366f1, #818cf8); } /* Indigo */
.dash-tool-card:nth-child(12n + 2) .dash-tool-icon-wrap { background: linear-gradient(135deg, #3b82f6, #60a5fa); } /* Blue */
.dash-tool-card:nth-child(12n + 3) .dash-tool-icon-wrap { background: linear-gradient(135deg, #06b6d4, #22d3ee); } /* Cyan */
.dash-tool-card:nth-child(12n + 4) .dash-tool-icon-wrap { background: linear-gradient(135deg, #ef4444, #f87171); } /* Red */
.dash-tool-card:nth-child(12n + 5) .dash-tool-icon-wrap { background: linear-gradient(135deg, #22c55e, #4ade80); } /* Green */
.dash-tool-card:nth-child(12n + 6) .dash-tool-icon-wrap { background: linear-gradient(135deg, #f43f5e, #fb7185); } /* Pink/Rose */
.dash-tool-card:nth-child(12n + 7) .dash-tool-icon-wrap { background: linear-gradient(135deg, #8b5cf6, #a78bfa); } /* Purple */
.dash-tool-card:nth-child(12n + 8) .dash-tool-icon-wrap { background: linear-gradient(135deg, #f97316, #fb923c); } /* Orange */
.dash-tool-card:nth-child(12n + 9) .dash-tool-icon-wrap { background: linear-gradient(135deg, #14b8a6, #2dd4bf); } /* Teal */
.dash-tool-card:nth-child(12n + 10) .dash-tool-icon-wrap { background: linear-gradient(135deg, #ec4899, #f472b6); } /* Pink */
.dash-tool-card:nth-child(12n + 11) .dash-tool-icon-wrap { background: linear-gradient(135deg, #f59e0b, #fbbf24); } /* Amber */
.dash-tool-card:nth-child(12n + 12) .dash-tool-icon-wrap { background: linear-gradient(135deg, #10b981, #34d399); } /* Emerald */

/* ---- Tablet: 3 columns ---- */
@media (max-width: 1100px) {
    .dash-pdf-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Mobile: 2 columns ---- */
@media (max-width: 680px) {
    .dash-pdf-tools-header {
        align-items: flex-start;
    }
    .dash-pdf-tools-title {
        font-size: 20px;
    }
    .dash-pdf-tools-subtitle {
        font-size: 13px;
    }
    .dash-pdf-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .dash-tool-card {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .dash-tool-icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 16px;
    }
    .dash-tool-icon {
        width: 24px;
        height: 24px;
    }
    .dash-tool-name {
        font-size: 14px;
    }
    .dash-tool-desc {
        font-size: 12px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .dash-tool-card,
    .dash-tool-icon-wrap,
    .dash-tool-glow {
        transition: none !important;
    }
    .dash-tool-card:hover,
    .dash-tool-card:focus-visible {
        transform: none;
    }
}
@keyframes dashProgressGlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
