@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&family=Varela+Round&display=swap');

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------------- Navbar ---------------- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background-color: #1a1a1a;
    border-bottom: 2px solid #333;
}
.logo { font-size: 1.5rem; font-weight: 800; color: #fbbf24; }
#user-info { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
#user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #3b82f6; }
#points-display { color: #4ade80; font-weight: 800; background: #222; padding: 5px 12px; border-radius: 20px; }

/* ---------------- Layout ---------------- */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

/* ---------------- Canvas Section ---------------- */
.canvas-section { 
    background: #1a1a1a; padding: 20px; border-radius: 12px; 
    text-align: center; border: 1px solid #333; height: fit-content; 
}
.canvas-wrapper { 
    background: #000; border-radius: 8px; padding: 10px; 
    margin-bottom: 15px; display: inline-block; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); 
}
#dono-canvas { max-width: 100%; height: auto; border-radius: 4px; }

/* ---------------- Controls Section ---------------- */
.controls-section { 
    background: #1a1a1a; padding: 20px; border-radius: 12px; 
    border: 1px solid #333; display: flex; flex-direction: column; 
}
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { 
    background: #333; color: #ccc; border: none; padding: 10px 15px; 
    border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; flex: 1; text-align: center; 
}
.tab-btn:hover { background: #444; color: white; }
.tab-btn.active { background: #fbbf24; color: #000; }

/* ---------------- Editor Specifics ---------------- */
.layer-btn { 
    background: #333; border: none; border-radius: 4px; font-size: 1.2rem; 
    cursor: pointer; transition: 0.2s; padding: 8px; flex: 1; 
}
.layer-btn:hover { background: #444; }
.layer-btn.active { background: #45efe4; box-shadow: 0 0 8px #45efe4; } /* Custom Cyan Highlight */

/* ?? CUSTOMIZED SELECTION GRID ?? */
.brand-asset-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); 
    gap: 8px; 
    padding: 15px; 
    overflow-y: auto; 
    flex: 1; 
    background-color: #45efe4; /* The requested Custom Background! */
}
.asset-item { 
    background: #1a1a1a; /* Dark background so the PNGs pop against the cyan grid */
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s; 
    border: 2px solid transparent; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 70px; 
    overflow: hidden; 
}
.asset-item:hover { transform: scale(1.05); background: #222; }
.asset-item.selected { border-color: #fbbf24; box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.4); }
.asset-item img { width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5)); }

/* Custom Scrollbar for the Grid */
.brand-asset-grid::-webkit-scrollbar { width: 8px; }
.brand-asset-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.brand-asset-grid::-webkit-scrollbar-thumb { background: #111; border-radius: 4px; }
.brand-asset-grid::-webkit-scrollbar-thumb:hover { background: #222; }

/* ---------------- Buttons & Controls ---------------- */
.btn-discord { background: #5865F2; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-discord:hover { background: #4752C4; }
.btn-save { background: #10b981; color: white; border: none; padding: 12px 25px; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; width: 100%; transition: 0.2s; }
.btn-save:hover { background: #059669; }
.btn-buy { background: #3b82f6; color: white; border: none; padding: 12px; border-radius: 6px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.2s; width: 100%; }
.btn-buy:hover { background: #2563eb; }

.dpad-btn { 
    background: #333; border: none; border-radius: 6px; font-size: 1.2rem; 
    cursor: pointer; transition: 0.1s; display: flex; align-items: center; justify-content: center; color: white;
}
.dpad-btn:active { background: #555; transform: scale(0.9); }
.dpad-btn:hover { background: #45efe4; color: black; } /* Custom Cyan Hover */

/* ---------------- Form Elements ---------------- */
input[type="text"], select { 
    width: 100%; padding: 12px; background: #222; border: 1px solid #444; 
    color: white; border-radius: 6px; font-family: 'Nunito', sans-serif; 
    margin-bottom: 15px; box-sizing: border-box; transition: 0.2s;
}
input[type="text"]:focus, select:focus { outline: none; border-color: #45efe4; } /* Custom Cyan Focus */

.status-msg { font-weight: bold; margin-top: 10px; min-height: 20px; color: #ccc; text-align: center; }

/* Boss Tab specific fix */
#tab-boss { width: 100%; max-width: 600px; margin: 0 auto; }

/* ---------------- Discord Server Redirect Button ---------------- */
.btn-join-discord {
    background-color: #5865F2; /* Official Discord Blurple */
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-join-discord:hover {
    background-color: #4752C4; /* Slightly darker shade on hover */
    transform: translateY(-1px);
}

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