/* BusinessZindagi Tools - Premium SaaS UI v1.1 */
.bz-tools-dashboard {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #1f2937;
    line-height: 1.6;
}

.bz-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(79 70 229 / 0.4);
}

.bz-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 60%);
    animation: hero-shimmer 15s linear infinite;
}

@keyframes hero-shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.bz-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.bz-hero .tagline {
    font-size: 1.35rem;
    opacity: 0.95;
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: #6366f1;
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    font-size: 3.75rem;
    margin-bottom: 1.25rem;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(8deg);
}

.category-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1f2937;
}

.category-card p {
    color: #6b7280;
    font-size: 0.975rem;
    margin: 0;
}

.coming-soon {
    opacity: 0.75;
    filter: grayscale(30%);
    pointer-events: none;
}

.tool-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    margin-bottom: 3rem;
    border: 1px solid #f3f4f6;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calculator-form {
    display: grid;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input, 
.form-group select {
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.result-card {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    padding: 1.75rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e0e7ff;
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-4px);
}

.result-card h4 {
    margin: 0 0 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1e2937;
    margin: 0;
    line-height: 1.1;
}

.btn {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to right, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 10px 15px -3px rgb(99 102 241 / 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(99 102 241 / 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

@media (max-width: 640px) {
    .tool-container, .bz-hero {
        padding: 2rem 1.25rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bz-tools-dashboard {
        color: #e2e8f0;
    }
    
    .category-card, .tool-container, .result-card {
        background: #1e2937;
        border-color: #334155;
    }
    
    .result-card {
        background: #334155;
    }
}
