/* ====================================================
   DASHBOARD ENHANCED STYLES - Interactive & Vibrant
   ==================================================== */

/* =========================================
   GLOBAL LAYOUT LOCK (DO NOT CHANGE)
   ========================================= */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container,
.tools-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* Enhanced Hero Section */
.dashboard-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dashboard-title {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Enhanced Container */
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.tool-category {
    margin-bottom: 70px;
    animation: fadeInUp 0.8s ease;
}

/* Interactive Category Headers */
.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-header:hover .category-title {
    color: var(--accent-primary);
    transform: translateX(8px);
}

.category-icon {
    font-size: 36px;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.category-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Enhanced Tool Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* Interactive Tool Cards with 3D Effect */
.tool-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover {
    border-color: transparent;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px -10px rgba(102, 126, 234, 0.4),
        0 0 0 2px var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.4));
}

.tool-card:hover .tool-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Enhanced Tool Elements */
.tool-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}

.tool-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-name {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.tool-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-desc {
    color: var(--text-primary);
}

.tool-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Header Link Animations */
.logo-section a {
    transition: all 0.3s ease;
}

.logo-section a:hover .logo-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.4));
}

.logo-section a:hover .logo-text {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-container {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 40px;
    }

    .dashboard-subtitle {
        font-size: 18px;
    }

    .category-title {
        font-size: 26px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 32px 24px;
    }
}

/* ====================================================
   SIDEBAR PANEL STYLES
   ==================================================== */

.sidebar-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.sidebar-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo:hover img {
    transform: scale(1.05);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.sidebar-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 12px 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-item:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.sidebar-item.active {
    background: var(--bg-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Desktop Layout Adjustment - CENTERED LAYOUT STANDARDIZATION */
@media (min-width: 1025px) {
    body {
        padding-left: 0;
        /* REMOVED: 280px sidebar padding */
        width: 100%;
        margin: 0 auto;
    }

    .minimal-header {
        left: 0;
        /* CHANGED: was 280px */
        width: 100%;
        /* CHANGED: was calc(100% - 280px) */
        position: fixed;
        top: 0;
        z-index: 900;
        max-width: 100%;
        margin: 0 auto;
    }

    /* RESTORE logo on desktop */
    .minimal-header .logo-section {
        display: flex;
        /* CHANGED: was display: none */
    }

    .dashboard-hero,
    .tools-container,
    .main-container {
        margin-top: 80px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
        max-width: 1200px;
        width: 100%;
    }
}


/* Mobile/Tablet Sidebar */
@media (max-width: 1024px) {
    .sidebar-panel {
        transform: translateX(-100%);
    }

    .sidebar-panel.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-toggle-btn {
        display: flex;
    }
}

/* ====================================================
   PREMIUM UPLOAD ZONE & TOOL PAGE STYLES
   ==================================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --premium-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dark-mode {
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.upload-zone {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px dashed var(--accent-primary);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.upload-zone:hover {
    transform: translateY(-4px);
    border-color: var(--accent-secondary);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.upload-zone:hover::before {
    transform: translateX(100%);
}

.upload-icon {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.3));
    animation: float 3s ease-in-out infinite;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-btn {
    background: var(--premium-gradient);
    color: white;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    margin-top: 24px;
}

.upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
}

.trust-badge i {
    color: #10b981;
}

/* India Govt Compliance Badge */
.govt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%);
    padding: 2px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.govt-badge-inner {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Progress Feedback */
.progress-container {
    margin-top: 40px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.progress-bar-wrapper {
    height: 12px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--premium-gradient);
    width: 0%;
    transition: width 0.3s ease;
}