/** PAGE OUVRIERE **/
.workers-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(--worker);
    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(--worker);
    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;
}

.jobs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.job-assignments {
    grid-column: span 2;
    background-color: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.assignment-title {
    font-size: 1.2rem;
    color: var(--worker);
}

.auto-assign {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background-color: var(--worker);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.job-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.job-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

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

.job-icon {
    width: 30px;
    height: 30px;
    background-color: var(--worker);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.job-title {
    font-weight: bold;
}

.job-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

.job-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-priority {
    display: flex;
    gap: 5px;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.priority-dot.active {
    background-color: var(--worker);
}

.job-buttons {
    display: flex;
    gap: 5px;
}

.job-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

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

.job-training, 
.worker-types {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.training-list,
.types-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

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

.training-info,
.type-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.training-name,
.type-name {
    font-weight: bold;
}

.training-desc,
.type-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.training-time,
.type-count {
    font-size: 0.8rem;
    color: var(--worker);
}

.training-button,
.type-button {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--worker);
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 0.8rem;
}

.training-button:hover,
.type-button:hover {
    background-color: #9ccc65;
}

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

.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: 65%;
    background-color: var(--worker);
    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(--worker);
}

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

.worker-stats {
    margin-top: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

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