:root {
    --primary-color: #6C5CE7;
    --primary-light: #A29BFE;
    --secondary-color: #00B894;
    --text-color: #2D3436;
    --bg-color: #F7F9FC;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --accent-color: #FD79A8;
    --code-bg: #2D3748;
    --code-text: #E2E8F0;
    --border-radius: 12px;
    --transition-speed: 0.25s;
    
    /* Dark mode variables */
    --dark-bg: #1A202C;
    --dark-card-bg: #2D3748;
    --dark-text: #E2E8F0;
    --dark-border: #4A5568;
    --dark-shadow: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-size: 15px; /* Base font size */
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}
body.dark-mode .card-header {
    background: linear-gradient(135deg, var(--primary-color), #4834d4);
}
body.dark-mode .preview-area {
     background: rgba(255,255,255,0.05);
}
body.dark-mode .preview-area.dark-bg-preview {
    background: var(--dark-bg);
}
.preview-area.dark-bg-preview {
     background: var(--code-bg);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2.5rem 0 3.5rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.3em;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-left: 8px; /* Added padding */
    padding-right: 8px; /* Added padding */
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.95;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
    padding-left: 8px; /* Added padding */
    padding-right: 8px; /* Added padding */
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
}

body.dark-mode .theme-toggle {
    background: var(--dark-card-bg);
    box-shadow: 0 4px 8px var(--dark-shadow);
}

body.dark-mode .theme-toggle i {
    color: var(--dark-text);
}

.container {
    max-width: 1300px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
}

.intro, .search-filter-area {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}
.search-filter-area {
    padding: 1.5rem;
}

body.dark-mode .intro, body.dark-mode .search-filter-area {
    background: var(--dark-card-bg);
    box-shadow: 0 8px 20px var(--dark-shadow);
}

.intro h2 { /* Target for line-height adjustment */
    font-size: 1.6rem; 
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    line-height: 1.3; /* Reduced line-height */
}


#search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
}
body.dark-mode #search-input {
    background-color: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: none;
    color: var(--text-color);
}

.tab:hover {
    background: rgba(230,230,230,0.8);
    transform: translateY(-1px);
}

.tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}
 .tab.active:hover {
    background: var(--primary-light);
}

body.dark-mode .tab {
    background: rgba(45, 55, 72, 0.8);
    color: var(--dark-text);
}
 body.dark-mode .tab:hover {
    background: rgba(60, 70, 90, 0.8);
    transform: translateY(-1px);
}

body.dark-mode .tab.active {
    background: var(--primary-color);
    color: white;
}
 body.dark-mode .tab.active:hover {
    background: var(--primary-light);
}

.animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.animation-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    display: flex;
    flex-direction: column;
}

body.dark-mode .animation-card {
    background-color: var(--dark-card-bg);
    box-shadow: 0 8px 20px var(--dark-shadow);
}

.animation-card:hover {
    transform: translateY(-3px); 
    box-shadow: 0 12px 28px var(--shadow-color); 
}
body.dark-mode .animation-card:hover {
    box-shadow: 0 12px 28px var(--dark-shadow);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header .favorite {
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.card-header .favorite:hover {
    transform: scale(1.15);
}
.card-header .favorite .fas.fa-heart {
    color: var(--accent-color);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.preview-area {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-speed);
}
        
.preview-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.bg-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

body.dark-mode .bg-toggle {
    background: rgba(45,55,72,0.7);
    color: var(--dark-text);
}

.bg-toggle:hover {
    transform: scale(1.1);
}

.controls {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.control-group {
    margin-bottom: 1rem;
}
.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: color var(--transition-speed);
}
.control-group label .value-display {
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--primary-color);
}
body.dark-mode .control-group label .value-display {
     color: var(--primary-light);
}
body.dark-mode label {
    color: var(--dark-text);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e1e1e1;
    border-radius: 3px;
    outline: none;
    transition: background var(--transition-speed);
    cursor: pointer;
}

body.dark-mode input[type="range"] {
    background: #4A5568;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
}

input[type="color"],
select,
input[type="text"].control-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    transition: all var(--transition-speed);
    box-sizing: border-box;
}

body.dark-mode input[type="color"],
body.dark-mode select,
body.dark-mode input[type="text"].control-input {
    border-color: var(--dark-border);
    background-color: var(--dark-card-bg);
    color: var(--dark-text);
}

input[type="color"] {
    height: 40px;
    cursor: pointer;
}

.code-tabs {
    display: flex;
    margin-bottom: 0.5rem;
}

.code-tab {
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.03);
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 2px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

body.dark-mode .code-tab {
    background: rgba(255,255,255,0.08);
    color: var(--dark-text);
}

.code-tab.active {
    background: var(--code-bg);
    color: var(--code-text);
}

.code-area-container { /* New wrapper */
    position: relative;
    margin-bottom: 1rem; /* Keep bottom margin if needed */
}

.code-area {
    background-color: var(--code-bg);
    padding: 1rem 1.25rem; /* Adjust padding as the copy button is outside now */
    border-radius: 0 8px 8px 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    white-space: pre-wrap;
    overflow: auto;
    color: var(--code-text);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    min-height: 120px; /* Increased min-height to make space for the button */
    margin-bottom: 0; /* Remove margin from code-area itself */
}

/* Repositioned Copy Button (formerly .actions button) */
.code-area-container .copy-btn {
    display: block; /* Make it a block to take full width or set width */
    width: 100%; /* Example: full width */
    margin-top: 1rem; /* Space above the button */
    text-align: center; /* Center text if button is full width */
}

.action-btn { /* General styling for action buttons if still needed elsewhere, or specific to copy */
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.2rem; /* Adjusted padding */
    font-size: 0.95rem; /* Adjusted font size */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Center icon and text */
    gap: 8px; /* Adjusted gap */
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.2);
}
body.dark-mode .action-btn {
    background: var(--primary-color);
}
body.dark-mode .action-btn:hover {
     box-shadow: 0 3px 8px rgba(108, 92, 231, 0.4);
}

.action-btn.primary {
    background: var(--primary-color);
}
body.dark-mode .action-btn.primary {
     background: var(--secondary-color);
}

.action-btn.copied {
    background-color: var(--secondary-color) !important; /* Force success color */
}
body.dark-mode .action-btn.copied {
    background-color: var(--accent-color) !important; /* Dark mode success color */
}


.seo-content-wrapper {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.seo-content { /* Shared by original SEO and new How To Use */
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px var(--shadow-color);
    text-align: left;
    font-size: 0.95rem;
}
body.dark-mode .seo-content {
    background-color: var(--dark-card-bg);
    box-shadow: 0 8px 20px var(--dark-shadow);
}
.seo-content h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}
.seo-content h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.seo-content p, .seo-content ul, .seo-content ol { /* Added ol */
    margin-bottom: 1rem;
    line-height: 1.7;
}
.seo-content ul, .seo-content ol { /* Added ol */
    list-style-position: outside;
    padding-left: 1.5em;
}
.seo-content ul li, .seo-content ol li { /* Added ol li */
    margin-bottom: 0.5rem;
}

.how-to-use-wrapper { /* New wrapper for spacing */
    margin-top: 3rem;
    margin-bottom: 3rem;
}


footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #2D3748, #1A202C);
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

footer .container {
    margin-top: 0;
}

footer h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
footer p {
    font-size: 0.9rem;
}

/* --- Footer Link Styles --- */
footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dark mode footer link colors */
body.dark-mode footer a {
    color: var(--primary-light);
}

body.dark-mode footer a:hover {
    color: var(--secondary-color);
}
/* --- End Footer Link Styles --- */


/* --- Loading Animation CSS --- */

/* 1. Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 2. Pulse */
.pulse {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse-animation 1.5s ease-in-out infinite;
}
@keyframes pulse-animation {
    0%, 100% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
}

/* 3. Dots */
.dots { display: flex; justify-content: center; align-items: center; }
.dots .dot {
    width: 12px; height: 12px; margin: 0 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}
.dots .dot:nth-child(1) { animation-delay: 0s; }
.dots .dot:nth-child(2) { animation-delay: 0.2s; }
.dots .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
}

/* 4. Bar */
.bar-loader {
    width: 100px; height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden; position: relative;
}
.bar-loader::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 30%; height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    animation: bar-slide 1.5s ease-in-out infinite;
}
@keyframes bar-slide {
    0%, 100% { left: 0; }
    50% { left: 70%; }
}
body.dark-mode .bar-loader { background-color: #4A5568; }


/* 5. Ring */
.ring-loader {
    width: 40px; height: 40px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
}
.ring-loader::after {
    content: ''; position: absolute;
    top: -4px; left: -4px;
    width: 100%; height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: ring-rotate 1s linear infinite;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* 6. Wave Loader */
.wave { display: flex; justify-content: center; align-items: center; gap: 3px; }
.wave .bar-item {
    width: 3px; height: 30px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: wave-animation 1.2s ease-in-out infinite;
}
.wave .bar-item:nth-child(1) { animation-delay: 0s; }
.wave .bar-item:nth-child(2) { animation-delay: 0.1s; }
.wave .bar-item:nth-child(3) { animation-delay: 0.2s; }
.wave .bar-item:nth-child(4) { animation-delay: 0.3s; }
.wave .bar-item:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* 7. Circle Dash */
.circle-dash-loader {
    width: 40px; height: 40px;
    border-radius: 50%; position: relative;
    color: var(--primary-color);
}
.circle-dash-loader::before,
.circle-dash-loader::after {
    content: ''; position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid; /* Controlled by JS */
    border-color: currentColor transparent currentColor transparent;
    animation: circle-dash-animation 1.5s linear infinite; /* Controlled by JS */
}
.circle-dash-loader::after {
    animation-direction: reverse;
    animation-delay: 0.75s; /* Controlled by JS (speed/2) */
}
/* @keyframes circle-dash-animation is dynamically generated/updated by JS */


/* 8. Text Loader */
.text-loader {
    font-size: 18px; font-weight: 600;
    color: var(--primary-color);
    display: flex; align-items: center; position: relative;
}
.text-loader::after {
    content: ''; width: 5px; height: 5px; /* Controlled by JS */
    border-radius: 50%; background-color: currentColor;
    margin-left: 4px; animation: text-dot 1.5s infinite; /* Controlled by JS */
}
/* @keyframes text-dot is dynamically generated/updated by JS */

/* 9. Skeleton Loader */
.skeleton { width: 200px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line {
    height: 15px; border-radius: 4px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.15) 37%, rgba(0,0,0,0.06) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}
.skeleton-line:first-child { width: 60%; }
.skeleton-line:nth-child(2) { width: 100%; }
.skeleton-line:nth-child(3) { width: 75%; }
body.dark-mode .skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 37%, rgba(255,255,255,0.08) 63%);
    background-size: 400% 100%;
}
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 10. Pie Chart Loader */
.pie-loader {
    width: 40px; height: 40px;
    border-radius: 50%;
    position: relative;
    animation: pie-load-dynamic 1.5s linear infinite;
}
/* @keyframes pie-load-dynamic is dynamically generated/updated by JS */


/* 11. 3D Cube Loader */
.cube-loader-preview {
    width: 50px; height: 50px; /* Controlled by JS */
    position: relative;
    perspective: 200px; /* Controlled by JS */
}
.cube-loader-preview .cube {
    width: 100%; height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: cube-rotate-animation 4s infinite linear; /* Duration controlled by JS */
}
.cube-loader-preview .cube-face {
    position: absolute;
    width: 50px; height: 50px; /* Controlled by JS */
    background-color: var(--primary-color); /* Color controlled by JS */
    opacity: 0.8;
    border: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
}
/* transform is set by JS based on size */
@keyframes cube-rotate-animation {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* 12. Text Sequence Loader */
.text-sequence-loader-preview {
    font-weight: bold;
    font-size: 22px; /* Controlled by JS */
    color: var(--primary-color); /* Controlled by JS */
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
}
.text-sequence-loader-preview span {
    display: inline-block;
    opacity: 0;
    /* animation-name, duration, delay are set by JS */
}
/* @keyframes text-appear-animation is dynamically generated/updated by JS */

/* Media Query for Smartphones */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem; /* Smaller font size for h1 on smartphones */
    }
    .subtitle {
        font-size: 1.0rem; /* Optionally adjust subtitle font size as well */
    }
    .intro h2 {
        font-size: 1.3rem; /* Smaller font size for intro h2 */
    }
    .container { /* Adjust padding for mobile */
        padding: 0 1rem;
    }
    .animation-grid { /* Single column on mobile */
        grid-template-columns: 1fr;
    }
}

/* --- How to Use Section Styles --- */
.how-to-use ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.how-to-use ol li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    background-color: rgba(0,0,0,0.02);
    border-radius: 8px;
    border-left: 5px solid var(--primary-light);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.how-to-use ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body.dark-mode .how-to-use ol li {
    background-color: rgba(255,255,255,0.06);
    border-left-color: var(--primary-color);
}

body.dark-mode .how-to-use ol li::before {
    background-color: var(--secondary-color);
}

/* Highlight keywords like HTML, CSS, JS, Copy */
.how-to-use ol li code,
.how-to-use ol li .highlight-word {
    background-color: var(--primary-light);
    color: white;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    display: inline-block;
    margin: 0 0.1em;
}
body.dark-mode .how-to-use ol li code,
body.dark-mode .how-to-use ol li .highlight-word {
    background-color: var(--primary-color);
}


/* Supplementary info paragraph styles */
.how-to-use ol + p {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: var(--border-radius);
    border-left: 5px solid #c76085;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
}

.how-to-use ol + p::before {
    content: "💡";
    margin-right: 0.5em;
    font-size: 1.1em;
}

body.dark-mode .how-to-use ol + p {
    background-color: var(--accent-color);
    border-left-color: #b35677;
}
