/* HISAAB PLATFORM - Global Styles */

:root {
    --hisaab-primary: #2563eb; /* Default, overridden by JS */
    --hisaab-secondary: #1e40af;
    --hisaab-bg: #f8fafc;
    --hisaab-card-bg: #ffffff;
    --hisaab-text: #1e293b;
    --hisaab-text-light: #64748b;
    --hisaab-danger: #ef4444;
    --hisaab-success: #22c55e;
    --hisaab-warning: #f59e0b;
    --hisaab-radius: 12px;
    --hisaab-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.hisaab-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: var(--hisaab-bg);
    padding: 20px;
    border-radius: var(--hisaab-radius);
    color: var(--hisaab-text);
}

/* Utilities */
.hisaab-hidden { display: none !important; }
.hisaab-blur { filter: blur(5px); transition: filter 0.3s ease; }
.hisaab-blur:hover { filter: blur(0); }

/* Components */
.hisaab-card {
    background: var(--hisaab-card-bg);
    border-radius: var(--hisaab-radius);
    padding: 24px;
    box-shadow: var(--hisaab-shadow);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.hisaab-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--hisaab-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.hisaab-btn:hover {
    background-color: var(--hisaab-secondary);
}

.hisaab-btn-outline {
    background-color: transparent;
    border: 2px solid var(--hisaab-primary);
    color: var(--hisaab-primary);
}

.hisaab-input-group {
    margin-bottom: 16px;
}

.hisaab-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.hisaab-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.hisaab-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hisaab-progress-fill {
    height: 100%;
    background: var(--hisaab-primary);
    width: 0%;
    transition: width 0.5s ease;
}

/* Badge System */
.hisaab-badge-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hisaab-badge {
    background: #fff;
    border: 1px solid var(--hisaab-primary);
    color: var(--hisaab-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.5;
}

.hisaab-badge.unlocked {
    background: var(--hisaab-primary);
    color: white;
    opacity: 1;
}

/* Actionable Tip */
.hisaab-pro-tip {
    background-color: #f0f9ff;
    border-left: 4px solid var(--hisaab-primary);
    padding: 16px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.hisaab-pro-tip h4 {
    margin: 0 0 8px 0;
    color: var(--hisaab-secondary);
}
