    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
    --primary: #FFFF00;   
    --primary-dark: #FFD700; 
        --secondary: #0e71d3;
        --success: #06d6a0;
        --danger: #ef476f;
        --warning: #ffd166;
        --dark: #121212;
        --light: #1e1e1e;
        --gray: #2d2d2d;
        --text: #e0e0e0;
        --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;
        --gradient-primary: var(--secondary);
        --card-border: 1px solid rgba(255, 255, 255, 0.05);
    }

    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);
        background-image: 
            radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 25%),
            radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 25%);
        font-size: 17px;
    
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    .header {
        text-align: center;
        padding: 3rem 0;
        position: relative;
    }

    .header h1 {
        font-size: 3rem;
        font-weight: 800;
        -webkit-background-clip: text;
        animation: fadeIn 0.8s ease;
        color: var(--primary);
        position: relative;
        display: inline-block;
    }


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

    .card {
        background: var(--card-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        margin-bottom: 2.5rem;
        border: var(--card-border);
        backdrop-filter: blur(10px);
    }

    .card-header {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .card-header h2 {
        font-size: 1.7rem;
        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;
    }

    .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)
    }

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

    .instruction-list {
        margin-top: 0.5rem;
        padding-left: 1.5rem;

    }

    .instruction-list li {
        margin-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.6;
        position: relative;
        font-size: 1rem;

    }


    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.75rem;
        background: var(--gradient-primary);
        color: white;
        font-weight: 600;
        border-radius: var(--radius);
        border: none;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
        z-index: 1;
    }



    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .btn:hover::before {
        opacity: 1;
    }

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

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

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


    .stats-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    @media (min-width: 768px) {
        .stats-grid {
            grid-template-columns: repeat(3, 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(--primary);
        animation: fadeIn 0.8s ease;
        border: var(--card-border);
        position: relative;
        overflow: hidden;
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        opacity: 0.03;
        z-index: 0;
    }

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

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

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

    .stat-value {
        font-size: 1.75rem;
        font-weight: 800;
        font-family: 'Fira Code', monospace;
        color: var(--text);
        margin-bottom: 0.25rem;
        position: relative;
        z-index: 1;
    }

    .stat-label {
        font-size: 0.875rem;
        color: var(--text-light);
        position: relative;
        z-index: 1;
    }

    .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;
        position: relative;
        padding-bottom: 0.5rem;
    }


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

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

    }

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

    }

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

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

    .footer {
        background: var(--dark);
        color: var(--light);
        padding: 2.5rem 0 1.5rem;
        position: relative;
        z-index: 1;
        margin-top: 3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .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 {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .text-center {
        text-align: center;
    }

    .text-success {
        color: var(--success);
    }

    .text-danger {
        color: var(--danger);
    }

    .hidden {
        display: none;
    }

    .flex {
        display: flex;
    }

    .items-center {
        align-items: center;
    }

    .justify-center {
        justify-content: center;
    }

    .mt-4 {
        margin-top: 1.5rem;
    }

    .mb-4 {
        margin-bottom: 1.5rem;
    }

    .mb-6 {
        margin-bottom: 2.5rem;
    }

    .px-4 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Converter specific styles */
    .converter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    @media (min-width: 968px) {
        .converter-form {
            grid-template-columns: 1fr auto 1fr;
        }
    }

    .form-group {
        margin-bottom: 1.5rem;
        position: relative;
    }

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

    .form-select, .form-input {
        width: 100%;
        padding: 0.875rem 1rem;
        background: var(--gray);
        border: 2px solid transparent;
        border-radius: var(--radius);
        color: var(--text);
        font-size: 1rem;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .form-select:focus, .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    }

    .conversion-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: var(--primary);
        animation: pulse 2s infinite;
    }

    .results-container {
        background: rgba(6, 182, 212, 0.05);
        border-radius: var(--radius);
        padding: 1.5rem;
        margin-top: 2rem;
        border-left: 4px solid var(--primary);
        animation: slideUp 0.5s ease;
    }

    .results-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--primary);
        display: flex;
        align-items: center;
    }

    .results-title i {
        margin-right: 0.5rem;
    }

    .game-results {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .game-result {
        background: var(--card-bg);
        padding: 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .game-name {
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--primary);
    }

    .game-sens {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: 'Fira Code', monospace;
    }

    .save-preset {
        margin-top: 2rem;
        display: flex;
        gap: 1rem;
    }

    .preset-input {
        flex: 1;
    }

    .presets-list {
        margin-top: 2rem;
    }

    .preset-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: var(--card-bg);
        border-radius: var(--radius);
        margin-bottom: 0.5rem;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .preset-item:hover {
        transform: translateX(5px);
    }

    .preset-info {
        flex: 1;
    }

    .preset-name {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

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

    .preset-actions {
        display: flex;
        gap: 0.5rem;
    }

    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255,255,255,.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* 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;
    }
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2.25rem;
        }

        .header p {
            font-size: 1.1rem;
        }

        .button-group {
            flex-direction: column;
        }

        .btn {
            width: 100%;
        }

        .instruction-list {
            padding-left: 1.25rem;
        }

        .instruction-list li {
            font-size: 0.85rem;
        }



        .conversion-arrow {
            transform: rotate(90deg);
            margin: 1rem 0;
        }
    }







    /* Searchable select styles */
    .searchable {
        position: relative;
    }

    .searchable:focus {
        box-shadow: 0 0 0 2px var(--primary);
    }

            .card-header h2 .fas {
            color: white;
        }
        
        .alert-text {
            color: white;
        }

        .alert-heading {
            font-size: 1.1rem;
        }

        .form-label-small {
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

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

        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;
            }
        }


        /* Make sure the parent containers don't restrict dropdown direction */
.converter-form {
  position: relative; /* Ensure dropdowns have correct relative context */
  overflow: visible; /* Prevent clipping dropdown */
}

/* Style for the select elements */
.form-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1.5px solid #2a2a2a;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #c0c0c0;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none; /* Remove default arrow for some browsers */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3csvg width='10' height='5' viewBox='0 0 10 5' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='%23666' d='M0 0l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 5px;
}

/* Hover and focus effect */
.form-select:hover,
.form-select:focus {
  border-color: #024286;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 68, 140, 0.5);
}

/* Optional: adjust height */
.form-select {
  height: 40px;
  line-height: 1.2;
}

/* Style the labels */
.form-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #222;
  font-size: 0.95rem;
}

/* Smaller label for instructions */
.form-label-small {
  font-size: 0.8rem;
  color: #e0e0e0;
  margin-top: 4px;
}