/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --bg: #f0f4f8;          /* Default Light Faint Blue */
    --panel: #ffffff;
    --bg-header: #f0f4f8;   /* Default Header/Footer Background */
    --accent: #be123c;      /* Deep Wine Red */
    --text: #1e293b;        /* Dark Text for readability */
    --border: rgba(0, 0, 0, 0.1);
    --window-header-bg: #e2e8f0;
}

/* CSS for h1 and p tags */
h1 {
    font-family: 'Monaco', monospace;
    color: var(--accent);
}

p {
    font-family: 'Arial', sans-serif; 
    color: var(--text);
}

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

/* --- TUTO BUTTON (Theme Related & No Resize) --- */
#tuto {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 6px;
    color: #ffffff !important; /* Text visible on accent */
    background: var(--accent); /* Theme dependent color */
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px; /* Fixed Height */
    width: 120px; /* Fixed Width */
    transition: all 0.3s ease;
    overflow: hidden;
}logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container img { height: 35px; width: auto; }
.logo-text { color: var(--accent); font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }

.header-actions { display: flex; gap: 10px; align-items: center; }


/* Hover Effect without changing size */
#tuto:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

#tuto::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

#tuto:hover::before {
    left: 120%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.3s ease;
    line-height: 1.6;
}

/* --- 2. TOPBAR & HEADER --- */
header, .topbar {
    height: 60px;
    background: var(--bg-header) !important; /* Changes with theme */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 3000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img { height: 35px; width: auto; }
.logo span, .logo-text { color: var(--accent); font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* Header Buttons (No Resize, Perfect Balance) */
.icon-btn {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text); /* Changes with theme */
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px; /* Fixed Height matching #tuto */
}

.icon-btn:hover { background: var(--bg); border-color: var(--accent); }
.icon-btn i { color: var(--accent); }

/* --- 3. HERO SECTION --- */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 25px auto;
}

.btn {
    padding: 14px 35px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover { transform: scale(1.02); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }

/* --- 4. FEATURES & CONTENT --- */
.section { padding: 40px 20px; max-width: 1100px; margin: auto; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: var(--panel);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* --- 5. FOOTER --- */
.footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-header) !important; /* Changes with theme */
    border-top: 1px solid var(--border);
    margin-top: 50px;
    color: var(--text); /* Readable on both light/dark */
}

/* --- 6. SETTINGS PANEL --- */
.settings-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100%;
    background: var(--panel);
    border-left: 2px solid var(--accent);
    z-index: 5000;
    display: none;
    transition: right 0.4s ease;
    padding: 25px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.settings-panel.open { right: 0; }

.s-group { margin-bottom: 20px; }
.s-group label { display: block; font-size: 11px; color: #8b949e; margin-bottom: 8px; font-weight: bold; text-transform: uppercase; }
.s-group select, .s-group input {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    border-radius: 6px;
    outline: none;
}
.checkbox-group { display: flex; gap: 15px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
