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

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

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

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

.personnel-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);
}

.personnel-actions {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.personnel-option {
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.8);
    transition: all 0.3s ease;
}

.personnel-option:hover {
    background-color: rgba(60, 60, 60, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.personnel-option h3 {
    margin-bottom: 12px;
    color: #ffcc00;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 8px;
}

.personnel-option select, 
.personnel-option input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.generals-list {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
    background-color: rgba(40, 40, 40, 0.6);
}

.general-item {
    padding: 12px;
    margin-bottom: 12px;
    background-color: rgba(50, 50, 50, 0.7);
    border-radius: 6px;
    border-left: 4px solid #ffcc00;
    transition: all 0.3s ease;
}

.general-item:hover {
    background-color: rgba(70, 70, 70, 0.9);
    transform: translateX(5px);
}

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

.general-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #ddd;
}

#reward-cost {
    margin-top: 8px;
    color: #ffcc00;
    font-size: 14px;
}

#search-generals,
#reward-btn,
#move-btn {
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

#search-generals:hover,
#reward-btn:hover,
#move-btn:hover {
    background-color: rgba(165, 42, 42, 0.9);
    transform: scale(1.02);
}

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

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

/* Scrollbar styling */
.generals-list::-webkit-scrollbar {
    width: 8px;
}

.generals-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.generals-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.generals-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* Responsive design */
@media (max-width: 768px) {
    .personnel-container {
        flex-direction: column;
    }
    
    .personnel-actions,
    .personnel-status {
        width: 100%;
    }
}