:root {
    --theme-bg: #1b1d22;
    --theme-accent: #4cb3d4;
    --theme-card-border: #7664a0;
    --theme-card-bg: rgba(0,0,0,0.2);
    --theme-card-active: rgba(118, 100, 160, 0.1);
    --theme-text-main: #f0f0f0;
    --theme-text-muted: #8b8d96;
    --theme-menu-border: rgba(255, 255, 255, 0.05);
    --theme-input-bg: rgba(0,0,0,0.3);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: "Bahnschrift", "Bahnschrift Condensed", -apple-system, sans-serif; 
    font-stretch: condensed; 
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: background-color 0.6s ease, color 0.6s ease;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem; /* Reduced to avoid scrolling */
    text-align: center;
    position: relative;
}

/* Carousel */
.carousel-container { margin-bottom: 2rem; } /* Reduced spacing */
.carousel-track { 
    display: flex; 
    justify-content: flex-start; 
    gap: 12px; 
    margin-bottom: 1rem; 
    overflow-x: auto; 
    padding-top: 4px; /* Fixes the top chop when hovering */
    padding-bottom: 8px;
    scrollbar-width: none; 
}
.carousel-track::-webkit-scrollbar { display: none; } 

.project-card {
    min-width: 80px; height: 100px; 
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--theme-card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}
.project-card:hover:not(.placeholder) { transform: translateY(-2px); border-color: var(--theme-accent); }
.project-card.active { border-color: var(--theme-card-border); background: var(--theme-card-active); cursor: default; transform: none; }

.project-card.placeholder { opacity: 0.5; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.1); }
.project-card.placeholder.empty-card { opacity: 0.2; }

.project-icon-img { width: 32px; height: 32px; object-fit: contain; }
.placeholder-icon { font-size: 28px; margin-bottom: 4px; }
.project-labels { display: flex; flex-direction: column; margin-top: 4px; }
.project-title { font-size: 0.9rem; font-weight: 600; color: var(--theme-text-muted); transition: color 0.6s ease; }
.project-subtitle { font-size: 0.65rem; color: var(--theme-text-muted); transition: color 0.6s ease; }
.active .project-title { color: var(--theme-accent); }
.active .project-subtitle { color: var(--theme-text-main); }

.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--theme-text-muted); opacity: 0.3; transition: all 0.3s ease;}
.dot.active { background: var(--theme-text-main); opacity: 1; transform: scale(1.2); }

/* Main Content */
h1 { font-size: 1.55rem; margin-bottom: 0.75rem; color: var(--theme-accent); transition: color 0.6s ease; }
#page-desc { font-size: 1.05rem; color: var(--theme-text-main); line-height: 1.4; margin-bottom: 2rem; transition: color 0.6s ease; font-weight: 200; } 

/* Menu */
.tab-menu { display: flex; justify-content: center; gap: 2rem; border-bottom: 1px solid var(--theme-menu-border); margin-bottom: 2rem; padding-bottom: 0.75rem; transition: border-color 0.6s ease; } 
.tab-btn { background: none; border: none; color: var(--theme-text-muted); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: color 0.3s ease; letter-spacing: 0.5px; }
.tab-btn:hover { color: var(--theme-text-main); }
.tab-btn.active { color: var(--theme-accent); }

/* Tabs & Features */
.tab-content { display: none; margin-bottom: 2rem; } 
.tab-content.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Install UI */
.install-main { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px; 
    margin-bottom: 2.5rem; 
    cursor: pointer; 
    padding: 16px 28px; 
    border-radius: 8px; 
    background: var(--theme-card-bg); 
    transition: transform 0.2s; 
    border: 1px solid var(--theme-menu-border);
    text-decoration: none; /* Removes underline */
    color: var(--theme-text-main); /* Removes default blue */
}
.install-main:hover { transform: translateY(-2px); }
.browser-img-large { width: 40px; height: 40px; object-fit: contain; }
/* Reduced other browser icons */
.browser-img-small { width: 18px; height: 18px; object-fit: contain; opacity: 0.6; transition: opacity 0.2s; } 
.browser-img-small:hover { opacity: 1; }
.install-text { 
    font-size: 1.35rem; 
    font-weight: 400;
    display: flex; 
    gap: 8px; 
    align-items: center; 
}
.accent-text {
    font-weight: 700; /* Bold */
}

.install-others { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--theme-text-muted); margin-bottom: 1rem;}
.other-browser-icons { display: flex; align-items: center; justify-content: center; gap: 16px; cursor: pointer; }

/* Form UI */
#bug-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; text-align: left; }

input, select, textarea { 
    width: 100%; 
    padding: 12px; 
    border-radius: 6px; 
    border: 1px solid var(--theme-menu-border); 
    background: var(--theme-input-bg); 
    color: var(--theme-text-main); 
    font-size: 1.05rem; 
    transition: all 0.3s ease; 
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--theme-accent);
}
.submit-btn { background: var(--theme-accent); color: #fff; padding: 12px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: filter 0.2s, background-color 0.6s; margin-top: 5px; }
.submit-btn:hover { filter: brightness(1.1); }

/* Form Groups & Layout */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; width: 100%; }
.form-group label { font-size: 0.95rem; font-weight: 600; color: var(--theme-text-muted); }
.radio-list, .checkbox-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.radio-list label, .checkbox-list label { display: flex; align-items: center; gap: 8px; color: var(--theme-text-main); cursor: pointer; font-weight: normal; line-height: 1.3; }

/* Custom Inputs */
input[type="radio"], input[type="checkbox"] { accent-color: var(--theme-accent); cursor: pointer; width: 16px; height: 16px; margin: 0; }
textarea { resize: vertical; min-height: 100px; }

/* Star Rating System (Pure CSS Reverse Flexbox) */
.rating-group { align-items: center; text-align: center; margin-bottom: 20px; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2.3rem; color: var(--theme-menu-border); cursor: pointer; transition: color 0.2s ease; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--theme-accent); }

/* Custom Dropdown Overrides */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cb3d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--theme-accent);
}

/* Force solid theme color on OS-rendered options */
select option {
    background-color: var(--theme-bg);
    color: var(--theme-text-main);
    padding: 10px;
}

textarea { resize: vertical; min-height: 100px; }

/* Form Success State */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: var(--theme-text-main);
    font-size: 1.1rem;
}

.reset-link {
    display: block;
    margin: 10px auto;
    background: none;
    border: none;
    color: var(--theme-accent);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: filter 0.2s;
}

.reset-link:hover {
    filter: brightness(1.2);
}

.submit-btn { background: var(--theme-accent); color: #fff; padding: 12px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: filter 0.2s, background-color 0.6s; margin-top: 10px; }
.submit-btn:hover { filter: brightness(1.1); }

/* Footer / Features */
footer { display: flex; flex-direction: column; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--theme-menu-border); width: 100%; }
.features-wrapper { width: 100%; max-width: 320px; text-align: left; }
.features-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--theme-text-muted); margin-bottom: 1rem; text-align: center; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; color: var(--theme-text-main); transition: color 0.6s ease; line-height: 1.4; }
.feature-list li::before { content: "✓"; color: var(--theme-accent); font-weight: bold; transition: color 0.6s ease; }

.copyright { font-size: 0.85rem; color: var(--theme-text-muted); margin-top: 2rem; width: 100%; text-align: center; letter-spacing: 0.5px; }

/* Animations */
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }