/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #FFFF00;   
    --primary-dark: #FFD700; 
    --secondary: #1571ce;
    --success: #06d6a0;
    --danger: #ef476f;
    --warning: #ffd166;
    --dark: #121212;
    --light: #1e1e1e;
    --gray: #2d2d2d;
    --text: #c2c2c2;
    --text-light: #a0a0a0;
    --card-bg: #1E1E1E;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius: 12px;
    --dark-card: #1E1E1E;
    --border: #36506b;

}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark);
    min-height: 100vh;
    transition: var(--transition);
    font-size: 17px;

}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header styles */
.header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    -webkit-background-clip: text;
    animation: fadeIn 0.8s ease;
}

.header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

/* Card styles */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: var(--transition);
    animation: slideUp 0.5s ease;
}

.card-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--gray);
    background: var(--card-bg);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--primary);
}

.card-header h2 i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.card-body {
    padding: 2rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--gray);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Fira Code', monospace;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Stats panel */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--border);
    animation: fadeIn 0.8s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card h3 i {
    margin-right: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Alert styles */
.alert {
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.8s ease;
}

.alert-info {
    box-shadow: var(--shadow);
    color: var(--primary);
}

.alert-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background: var(--secondary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn i {
    margin-right: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: var(--danger);
}



/* Content styles */
.content-section {
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease;
    position: relative;
    z-index: 1;
}

.content-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.content-section h2 i {
    margin-right: 0.75rem;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: var(--text);
    line-height: 1.7;
}

.content-section ul, .content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    color: var(--text);
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-section strong {
    color: var(--primary);
}

/* Footer styles */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 2.5rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Button group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Formula display */
.formula {
    font-family: 'Fira Code', monospace;
    font-size: 1.25rem;
    padding: 1rem;
    background: var(--gray);
    border-radius: var(--radius);
    text-align: center;
    margin: 1rem 0;
    color: var(--primary);
    font-weight: bold;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.25rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

        .card-header h2 .fas,
        .alert-info p,
        .alert-info .formula,
        .form-group label .fas,
        .stat-card h3 .fas,
        .content-section h2 .fas,
        .stat-value {
            color: rgb(212, 212, 212);
        }

        .card-body.content-card-body {
            font-size: 17px;
        }
    

        .alert-info > div {
            color: rgb(214, 214, 214);
            font-size: 18px;
        }

        table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
    border: 1px solid #ddd; /* outer border */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ddd; /* grid lines */
}

th {
    font-weight: 600;
}
        .emoji {
            font-size: 1.2em;
        }
        .faq-section {
            padding: 20px;
            border-radius: 5px;
            margin-top: 2em;
        }
        .faq-section h2 {
            margin-top: 0;
        }
        @media (max-width: 600px) {
            body {
                padding: 15px;
            }
            table {
                font-size: 0.85em;
            }
            th, td {
                padding: 8px 10px;
            }
        }