/* ========== INDEX PAGE STYLES ========== */

body {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    width: 350px;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-container {
    flex: 1;
    background-color: #2a2a2a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

#mapWrapper {
    cursor: pointer;
}

.listColors {
    margin-top: 15px;
}

.color {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    align-items: center;
}

.color input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #555;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.color input[type="text"] {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 3px;
    background-color: #1a1a1a;
    color: white;
    font-size: 11px;
}

.color input[type="text"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.color button {
    background-color: #d9534f;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.color button:hover {
    background-color: #c9302c;
}

.btn-primary {
    background-color: #4a9eff;
    color: white;
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: #2d7dd4;
}

.btn-success {
    background-color: #5cb85c;
    color: white;
    width: 100%;
}

.btn-success:hover {
    background-color: #4cae4c;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.button-group > a,
.button-group > button {
    flex: 1;
    margin-top: 0;
}

.btn-primary-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    background-color: #4a9eff;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-primary-link:hover {
    background-color: #2d7dd4;
}

.info-panel {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 11px;
    max-width: 250px;
    z-index: 100;
}

@media (max-width: 1200px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 300px;
    }

    .main {
        min-height: 400px;
    }
}
