:root {
    --sable: #d2b48c;
    --sable-clair: #f5deb3;
    --vert-suna: #2d5a27;
    --brun-sombre: #3e2723;
    --danger: #b71c1c;
}

body {
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://www.transparenttextures.com/patterns/sandpaper.png');
    color: var(--sable-clair);
    font-family: 'Palatino Linotype', serif;
    margin: 0;
    padding: 20px;
}

header { text-align: center; border-bottom: 3px double var(--vert-suna); margin-bottom: 30px; padding-bottom: 10px; }
h1 { font-size: 2.5rem; text-shadow: 2px 2px 4px #000; color: var(--sable); letter-spacing: 3px; }

.admin-panel {
    background: rgba(62, 39, 35, 0.95);
    border: 2px solid var(--sable);
    padding: 20px;
    border-radius: 5px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

input, select, textarea, .paste-area {
    background: #2b1d1a;
    border: 1px solid var(--vert-suna);
    padding: 10px;
    color: #fff;
    border-radius: 3px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

textarea { height: 60px; resize: none; grid-column: span 2; }

#photo {
    grid-column: 1 / -1;
    text-align: center;
}

#img-preview { max-height: 60px; margin-left: 15px; border: 1px solid var(--sable); display: none; }

.btn-main {
    grid-column: 1 / -1;
    background: var(--vert-suna);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.search-container { max-width: 1100px; margin: 0 auto 30px; }
.search-container input {
    width: 100%;
    font-size: 1.1rem;
    border: 2px solid var(--sable);
    background: rgba(43, 29, 26, 0.8);
    color: white;
    padding: 12px;
    border-radius: 3px;
}

#bingo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
}

.ninja-card {
    background: #efe4d1;
    color: #2b1d1a;
    display: flex;
    padding: 15px;
    border-radius: 2px;
    box-shadow: 8px 8px 0px var(--vert-suna);
    position: relative;
}

.photo-container { width: 160px; height: 220px; border: 3px solid var(--brun-sombre); background: #ccc; flex-shrink: 0; }
.ninja-photo { width: 100%; height: 100%; object-fit: cover; }

.info { margin-left: 15px; flex-grow: 1; font-size: 0.9rem; }
.info h3 { margin: 0 0 8px 0; font-size: 1.5rem; color: var(--vert-suna); border-bottom: 2px solid var(--brun-sombre); }
.info p { margin: 3px 0; }
.label { font-weight: bold; color: #5d4037; text-transform: uppercase; font-size: 0.75rem; }

.extra-box { background: rgba(0,0,0,0.05); padding: 5px; border-radius: 3px; margin-top: 5px; font-style: italic; }

.actions { position: absolute; top: 5px; right: 5px; display: flex; gap: 5px; }
.btn-edit, .btn-del { border: none; padding: 4px 8px; cursor: pointer; border-radius: 3px; color: white; }
.btn-edit { background: #ffa000; }
.btn-del { background: var(--danger); }