/* Team Manager Styles */

/* Edit Team Button */
.team-edit-btn {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.team-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.team-edit-btn i {
    font-size: 0.9rem;
}

/* Team Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.team-modal.show {
    opacity: 1;
    visibility: visible;
}

.team-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.team-modal.show .team-modal-content {
    transform: translateY(0);
}

.team-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.team-modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.team-modal-body {
    padding: 2rem;
}

/* Team Members List */
.team-members-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.team-member-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.member-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.member-item-title {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.member-item-actions {
    display: flex;
    gap: 8px;
}

/* Member Form Modal */
.team-form-modal {
    max-width: 600px;
}

.member-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.member-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-form label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.member-form input,
.member-form textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.member-form input:focus,
.member-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.member-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

/* Notification */
.team-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #667eea;
    min-width: 300px;
}

.team-notification.show {
    transform: translateX(0);
}

.team-notification.success {
    border-left-color: #10b981;
}

.team-notification.success i {
    color: #10b981;
}

.team-notification i {
    font-size: 1.25rem;
    color: #667eea;
}

.team-notification span {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-modal {
        padding: 1rem;
    }

    .team-modal-content {
        max-height: 95vh;
    }

    .team-modal-header,
    .team-modal-body {
        padding: 1.5rem;
    }

    .team-member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .team-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}
