* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

nav {
    background: #16213e;
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #ff4655;
}

nav a {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 70, 85, 0.2);
}

nav a.active {
    color: #ff4655;
    background: rgba(255, 70, 85, 0.1);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    margin-bottom: 2rem;
    color: #ff4655;
}

h2 {
    margin: 1.5rem 0 1rem;
    color: #ddd;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaa;
}

input, select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #16213e;
    color: #fff;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: #ff4655;
}

button {
    background: #ff4655;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover {
    background: #e63946;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.status.loading {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196f3;
    color: #2196f3;
}

.hidden {
    display: none;
}

/* Matches list on collect page */
#matchesList {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.match-item {
    background: #16213e;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-item.win {
    border-left: 3px solid #4caf50;
}

.match-item.loss {
    border-left: 3px solid #f44336;
}

.save-btn {
    margin-top: 1rem;
}

/* Matches table */
table {
    width: 100%;
    border-collapse: collapse;
    background: #16213e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: #0f3460;
    color: #ff4655;
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 70, 85, 0.05);
}

.result-win {
    color: #4caf50;
    font-weight: bold;
}

.result-loss {
    color: #f44336;
    font-weight: bold;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-success {
    background: #4caf50;
}

.btn-success:hover {
    background: #43a047;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

#pageInfo {
    color: #888;
}

/* Map visualization */
#mapContainer {
    margin-top: 2rem;
}

#mapPlot {
    background: #16213e;
    border-radius: 8px;
    padding: 1rem;
}

#killCount {
    color: #888;
    margin-bottom: 1rem;
}

/* Agent image */
.agent-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
}
