#diplomacy-view {
    background-image: url('../img/diplomacy.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 700px;
    position: relative;
    padding: 20px;
    color: #fff;
}

#diplomacy-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

#diplomacy-view .header,
#diplomacy-view .diplomacy-container {
    position: relative;
    z-index: 1;
}

#diplomacy-city-name {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 2rem;
    margin-bottom: 20px;
}

.diplomacy-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.faction-list {
    width: 30%;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.diplomacy-actions {
    width: 70%;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.faction-item {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(50, 50, 50, 0.6);
    color: #fff;
}

.faction-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.faction-item.selected {
    background-color: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.faction-item h4 {
    margin-bottom: 8px;
    color: #ffcc00;
    font-size: 1.1rem;
}

.relation-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.relation-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #ffcc00, #4CAF50);
    transition: width 0.5s ease;
}

#action-params {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.param-group {
    margin-bottom: 15px;
}

.param-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffcc00;
}

.param-group input,
.param-group select {
    width: 100%;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #555;
    border-radius: 4px;
}

#diplomacy-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    background-color: rgba(40, 40, 40, 0.7);
    min-height: 60px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #fff;
    font-style: italic;
}

#relations-status {
    margin-top: 15px;
}

.relation-item {
    margin-bottom: 12px;
    padding: 12px;
    background-color: rgba(50, 50, 50, 0.6);
    border-radius: 6px;
    border-left: 3px solid #ffcc00;
}

#execute-diplomacy {
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s;
}

#execute-diplomacy:hover {
    background-color: rgba(165, 42, 42, 0.9);
    transform: scale(1.05);
}

#return-city-from-diplomacy {
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#return-city-from-diplomacy:hover {
    background-color: rgba(165, 42, 42, 0.9);
}

.diplomacy-resources span {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .diplomacy-container {
        flex-direction: column;
    }
    
    .faction-list,
    .diplomacy-actions {
        width: 100%;
    }
}