/* General Styles */
body {
    font-family: 'Segoe UI', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #eee;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
header {
    background-color: #1c1c1c;
    color: #eee;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header h2 {
    margin: 10px 0 0;
    font-size: 1.2em;
}

/* Navbar */
.navbar,
.w3-bar {
    background: #222;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.nav-links,
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 16px;
}

.nav-links a,
nav ul li a,
.w3-bar-item {
    color: #ccc;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-links a:hover,
nav ul li a:hover,
.w3-bar-item:hover {
    color: #fff;
    background-color: #333;
    text-decoration: underline;
}

/* Sidebar */
.w3-sidebar {
    width: 120px;
    background: #1c1c1c;
}

.w3-sidebar .w3-bar-item {
    color: #e0e0e0;
    text-align: center;
}

.w3-sidebar .w3-bar-item:hover {
    background-color: #333;
}

/* Buttons */
button,
input[type=submit],
.w3-button {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    margin: 5px;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

button:hover,
input[type=submit]:hover,
.w3-button:hover {
    background: #005fa3;
}

/* Cards */
.w3-card {
    background: #1b1b1b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1b1b1b;
    overflow-x: auto;
    display: block;
}

th,
td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

/* Sections */
section {
    padding: 20px;
    box-sizing: border-box;
}

section h1 {
    font-size: 1.8em;
}

/* Footer */
footer {
    background-color: #1c1c1c;
    color: #e0e0e0;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: #222;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 90vw;
    box-sizing: border-box;
}

.modal-content {
    background: #222;
    color: #eee;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    max-width: 100%;
}

/* Dart Input UI */
.dart-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.dart-panel button {
    font-size: 18px;
    padding: 14px 0;
    background: #2b2b2b;
    color: #fff;
}

.dart-panel .action {
    grid-column: span 2;
    background: #cc3333;
}

.dart-score {
    font-size: 32px;
    text-align: center;
    margin-top: 10px;
    color: #00ff99;
}

/* Checkout suggestion */
.checkout {
    margin-top: 15px;
    padding: 10px;
    background: #202020;
    border-left: 4px solid #0f0;
    font-style: italic;
    color: #aaffaa;
}

/* Player list */
.player-list {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 6px;
    list-style: none;
}

.player-list li {
    margin-bottom: 6px;
}

/* Logo */
.PoC-logo-big {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar,
    .w3-bar {
        flex-direction: column;
        align-items: center;
    }

    .nav-links,
    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .w3-bar-item {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .dart-panel {
        grid-template-columns: repeat(4, 1fr);
    }

    header h1 {
        font-size: 1.6em;
    }

    header h2 {
        font-size: 1em;
    }

    .dart-score {
        font-size: 24px;
    }

    .modal-content {
        padding: 15px;
    }

    .checkout {
        font-size: 14px;
    }

    .PoC-logo-big {
        width: 60%;
    }
}
