.employee-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.employee-management-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.employee-management-modal .employee-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.employee-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.employee-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.employee-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.employee-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.employee-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.employee-section {
    margin-bottom: 2rem;
}

.employee-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.employee-details {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.employee-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.employee-detail:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.modal-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    pointer-events: none;
}

.modal-btn::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    margin-bottom: 3px;
}

.modal-btn:hover::after,
.modal-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.modal-btn.fire {
    background: #e74c3c;
}

.modal-btn.fire:hover {
    background: #c0392b;
}

.modal-btn.promote {
    background: #f39c12;
}

.modal-btn.promote:hover {
    background: #e67e22;
}

.modal-btn.motivate {
    background: #27ae60;
}

.modal-btn.motivate:hover {
    background: #229954;
}

.modal-btn.train {
    background: #9b59b6;
}

.modal-btn.train:hover {
    background: #8e44ad;
}

.modal-btn.close {
    background: #95a5a6;
    grid-column: span 2;
    margin-top: 1rem;
}

.modal-btn.close:hover {
    background: #7f8c8d;
}

.modal-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.modal-btn.change-shift {
    background: #8e44ad;
    grid-column: span 2;
}

.modal-btn.change-shift:hover {
    background: #6c3483;
}

.employee-list {
    max-height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.employee-item {
    background: #ecf0f1;
    padding: 0.8rem;
    margin-bottom: 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.employee-stats {
    font-size: 0.8rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.no-employees {
    grid-column: span 3;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 2rem;
}

.save-load-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.save-load-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.save-load-header {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-load-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.save-load-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.save-load-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.save-load-content {
    padding: 2rem;
}

.save-load-content p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.save-data-text {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.save-data-text:focus {
    outline: none;
    border-color: #16a085;
}

.copy-save-btn, .load-save-btn {
    background: #16a085;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.copy-save-btn:hover, .load-save-btn:hover {
    background: #138d75;
    transform: translateY(-2px);
}

.load-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}