:root {
    --primary: #007b86;
    --primary-dark: #005f67;
    --primary-light: #eef9fa;
    --accent: #3b82f6;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 20px;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* ===== BASIC RESET (SAFE) ===== */
html, body { 
    margin: 0; 
    padding: 0;
}

/* ❌ IMPORTANT: body flex REMOVE किया */
body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.5; 
}

/* ===== TOOL PAGE WRAPPER ===== */
/* Header ke niche spacing fix */
.tool-page {
    padding-top: 90px; /* header height */
}

.tool-header.text-center {
    padding-top: 90px;
}

/* ===== MAIN WRAPPER ===== */
/* ❌ main ko flex mat banao */
main.tool-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* TOOL PAGE FULL HEIGHT FIX */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN CONTENT PUSH */
main.tool-page {
    flex: 1;
    display: block;
}

/* ===== HEADER ===== */
.tool-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.tool-header p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ===== COMMON STATES ===== */
.tool-state {
    margin-top: 20px;
}

/* ===== UTILITIES ===== */
.container-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

/* ===== HIDDEN ===== */
.hidden {
    display: none !important;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: #e2e8f0;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: 0.3s;
}

/* small version */
.progress-bar.small {
    max-width: 300px;
}