:root {
    --base-bg: #121212;
    --card-bg: #1E1E1E;
    --input-bg: #1A1A1A; 
    --primary-text: #F7F7F7;
    --secondary-text: #A0A0A0;
    --accent: #0D6EFD;
}

html, body {
    height: 100%;
    background: var(--base-bg);
    color: var(--primary-text);
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100%;
    background: var(--base-bg);
}

.navbar {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25), 0 1.5px 2px rgba(13,110,253,0.03);
    z-index: 100;
    padding: 20px 0;
    text-align: center;
}

.navbar__container {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.navbar__title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 80px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 800px; 
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-align: center;
}

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

.form-group__label {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group__input, select.form-group__input {
    background: var(--input-bg);
    border: 1px solid #444;
    color: var(--primary-text);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

select.form-group__input option {
    background: var(--input-bg);
    color: var(--primary-text);
}

.form-group__input:focus {
    border-color: var(--accent);
}

textarea.form-group__input {
    resize: vertical;
    min-height: 100px;
}

/* --- CANVASES & TOOLS --- */
.canvas-group {
    background: #252525;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.canvas-container {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1A1A1A; 
    border: 1px solid #444;
}

.canvas-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.tool-section {
    display: flex;
    gap: 5px;
    align-items: center;
    background: #1E1E1E;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #333;
}

.flex-right { margin-left: auto; }

.tool-btn {
    background: transparent;
    color: var(--secondary-text);
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover { background: #333; color: #fff; }
.tool-btn.active { background: rgba(13, 110, 253, 0.2); color: var(--accent); }

/* --- BUTTONS & UPLOADS --- */
.button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.button:hover { opacity: 0.9; }
.button--secondary { background: #2D2D2D; border: 1px solid #444; }
.btn-danger { background: #8b0000; }
.mt-30 { margin-top: 30px; }
.mt-10 { margin-top: 10px; }

.custom-file-upload .upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    color: var(--primary-text);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid #444;
    transition: background 0.2s;
}

.custom-file-upload .upload-label:hover { background: #333; }
.hidden-input { display: none; }

#splashScreen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--base-bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center;
    z-index: 999999; backdrop-filter: blur(4px);
}
.modal-content {
    background: var(--card-bg); padding: 30px; border-radius: 12px;
    width: 90%; max-width: 400px; border: 1px solid #333;
}
