/** PAGE SOLDAT **/

.soldiers-management {
    grid-column: 2;
    grid-row: 2;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
}

.section-title {
    color: var(--soldier);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--soldier);
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-trend {
    font-size: 0.8rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.defense-deployment {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}

.defense-map {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 400px;
}

.map-title {
    font-size: 1.2rem;
    color: var(--soldier);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-view {
    position: relative;
    height: 330px;
    background-color: #2a1b0d;
    border-radius: 8px;
    /*overflow: hidden;*/
    overflow: auto;
}

.map-chamber {
    position: absolute;
    background-color: #4d2e1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.map-tunnel {
    position: absolute;
    background-color: #3d2314;
    border-radius: 4px;
}

.defense-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.7);
    border: 2px solid var(--soldier);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    z-index: 5;
}

.defense-point:hover {
    background-color: var(--soldier);
    transform: scale(1.2);
}

.defense-details {
    display: flex;
    flex-direction: column;
}

.deployment-panel,
.patrol-panel {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.deployment-panel {
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.2rem;
    color: var(--soldier);
    margin-bottom: 15px;
}

.defense-point-details {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.point-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.point-status {
    background-color: var(--soldier);
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.point-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.point-stat {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.point-slider {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--soldier);
    cursor: pointer;
}

.patrol-routes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patrol-route {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.route-name {
    font-weight: bold;
}

.route-details {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.route-soldiers {
    font-size: 0.9rem;
    color: var(--soldier);
}

.route-actions {
    display: flex;
    gap: 5px;
}

.route-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.route-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.combat-units {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.unit-card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.unit-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--soldier);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.unit-icon {
    width: 50px;
    height: 50px;
    background-color: var(--soldier);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.unit-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.unit-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.unit-stat {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.stat-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
}

.stat-fill {
    height: 100%;
    background-color: var(--soldier);
    border-radius: 3px;
}

.unit-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.unit-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.unit-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--soldier);
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.unit-btn:hover {
    background-color: #e53935;
}

.status-bar {
    grid-column: 1 / 4;
    grid-row: 3;
    background-color: var(--surface);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-info {
    flex: 1;
}

.progress-container {
    flex: 2;
    height: 60px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 35%;
    background-color: var(--soldier);
    border-radius: 5px;
}

.status-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--primary);
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #ff8c24;
}

.right-panel {
    grid-column: 3;
    grid-row: 2;
    background-color: var(--surface);
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.panel-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--soldier);
}

.soldier-queue {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.queue-icon {
    width: 24px;
    height: 24px;
    background-color: var(--soldier);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.queue-time {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.alert-status {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.alert-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.alert-text {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.alert-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.threats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.threat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.special-upgrades {
    margin-top: 30px;
}

.upgrade-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--soldier);
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.upgrade-name {
    font-weight: bold;
}

.upgrade-cost {
    background-color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upgrade-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.upgrade-effect {
    font-size: 0.8rem;
    color: var(--soldier);
}

.upgrade-button {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background-color: var(--soldier);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upgrade-button:hover {
    background-color: #e53935;
}

.upgrade-button:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}