:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #e10600;
    /* F1 Red */
    --secondary-color: #333;
    --accent-color: #4caf50;
    --input-bg: #2d2d2d;
    --border-color: #444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    color: #fff;
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

input,
button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff1e1e;
}

button.secondary {
    background-color: var(--secondary-color);
}

button.secondary:hover {
    background-color: #555;
}

.hidden {
    display: none !important;
}

.camp-list {
    list-style: none;
    padding: 0;
}

.camp-list li {
    background-color: #2a2a2a;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camp-info {
    flex-grow: 1;
    line-height: 1.6;
}

.camp-info small {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
}

.camp-actions button {
    width: auto;
    margin: 0 5px;
    padding: 8px 15px;
    font-size: 14px;
}

.error {
    color: #ff4444;
    text-align: center;
    margin-top: 10px;
}

.success {
    color: #4caf50;
    text-align: center;
    margin-top: 10px;
}

.flex-row {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-modal {
    z-index: 2000;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-message {
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons button {
    width: auto;
    min-width: 100px;
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    margin-left: 10px;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.1);
    background: none;
}

/* Mobile Layout Fix */
@media (max-width: 600px) {
    .camp-list li {
        flex-direction: column;
        align-items: stretch;
    }

    .camp-info {
        margin-bottom: 15px;
    }

    .camp-actions {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
}

/* Round Back Button Style */
.back-btn-round {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #222;
    border: 2px solid var(--primary-color);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.back-btn-round:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
    background-color: #111;
}