:root {
    --gold: #b08d44;
    --gold-dark: #a0803d;
    --bg-light: #f4f7f6;
}
.header-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.info-bar {
	position: relative;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;       
    row-gap: 15px;         
    column-gap: 0;         
    margin-bottom: 30px;
}

.info-item {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
	box-sizing: border-box;
}

.info-item:nth-child(even) {
    justify-content: flex-end;
    text-align: right;
	padding-right:20px;
}

.info-btn-edit {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.4rem;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
	z-index
}

.info-btn-edit:hover {
    color: #b08d44;
    transform: rotate(90deg); 
}

@media (max-width: 600px) {
    .info-item {
        flex: 0 0 100%;
		justify-content: flex-start !important;
        text-align: left !important;
        padding-right: 0;
    }
	.info-item:nth-child(even) {
        justify-content: flex-start;
        text-align: left;
    }
}

.tab-menu {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab-link.active {
    color: #b08d44;
    border-bottom-color: #b08d44;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.btn-start {
    background-color: #b08d44;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(176, 141, 68, 0.3);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-nieuw {
	background: #b08d44;
	color: white;
}

.status-lopend {
	background: #28a745;
	color: white;
}
.status-afgerond {
	background: #198754;
	color: white;
}
.status-geannuleerd {
	background: #6c757d;
	color: white;
}

.btn-delete {
    background: none;
    border: 1px solid #ddd;
    color: #cc0000;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #fff5f5;
    border-color: #cc0000;
	transform: scale(1.05);
}

.btn-add {
    background-color: #b08d44;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
}
/* Container voor kop en formulier */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.add-player-form {
    display: flex;
    gap: 10px;
}

.add-player-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

/* De Grid voor de spelers */
.player-grid {
    display: grid;
    /* Maximaal 3 kolommen op groot scherm, minimaal 250px breed per stuk */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* Een individuele 'player tag' */
.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: transform 0.1s;
}

.player-card:hover {
    border-color: #b08d44;
}

.btn-remove {
    background: #fff0f0;
    color: #cc0000;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    line-height: 1;
}

.btn-remove:hover {
    background: #cc0000;
    color: white;
}
.filter-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

#playerSearch {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px; /* Ronde vorm voor een 'zoek' look */
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="gray" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 40px; /* Ruimte maken voor het vergrootglas */
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#playerSearch:focus {
    border-color: #b08d44;
}

/* De achtergrond met een chique blur */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    overflow: hidden; /* Zorgt dat de header-kleur de hoeken volgt */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: modalPop 0.25s ease-out;
}


.modal-header {
    background: #212529;
    color: white;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #b08d44;
}

.modal-header h3 { margin: 0; font-size: 1.2rem; }

.close-x {
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; opacity: 0.7;
}
.close-x:hover { opacity: 1; }

.modal-body { padding: 30px 20px; text-align: center; }

.modal-icon-wrapper {
    font-size: 3rem; color: #e03131; margin-bottom: 15px;
}

/* Knoppen onderaan netjes naast elkaar */
.modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
}

.modal-footer button, .modal-footer form { flex: 1; }

.btn-cancel {
    background: #dee2e6; /* Lichtgrijs, duidelijk zichtbaar */
    color: #495057;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cancel:hover { background: #ced4da; }

.btn-confirm-delete {
    background: #e03131;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(224, 49, 49, 0.3);
}
.btn-confirm-delete:hover { background: #c92a2a; }

.view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.tab.active {
    background: #b08d44; /* Jouw goudkleur */
    color: white;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.match-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #888;
}

.board { font-weight: bold; color: #b08d44; }

.match-players {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
}

.vs { font-weight: normal; color: #ccc; font-size: 0.8rem; }

.match-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.referee { font-size: 0.8rem; color: #666; }

.btn-score {
    background: #212529;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}